1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Maslowich
3 years ago
9

Python Question Class 11 attached below

Computers and Technology
1 answer:
snow_tiger [21]3 years ago
6 0
math = 2-2/3+2/5-2/7+2/9
Print(math)
Simple as that tell me if im wrong its been a while since i didn’t do python
You might be interested in
Which of the following is true about database queries?
8_murik_8 [283]

Answer:D

Queries are always saved and can therefore be run on the most up-to-date database information

4 0
4 years ago
My friend Leo wants to have an emergency plan for his final exams on University of Southern Algorithmville. He has N subjects to
leonid [27]

Answer:

Greedy is an algorithmic paradigm that builds up a solution piece by piece, always choosing the next piece that offers the most obvious and immediate benefit. Greedy algorithms are used for optimization problems. An optimization problem can be solved using Greedy if the problem has the following property: At every step, we can make a choice that looks best at the moment, and we get the optimal solution of the complete problem.

If a Greedy Algorithm can solve a problem, then it generally becomes the best method to solve that problem as the Greedy algorithms are in general more efficient than other techniques like Dynamic Programming. But Greedy algorithms cannot always be applied. For example, the Fractional Knapsack problem (See this) can be solved using Greedy, but 0-1 Knapsack cannot be solved using Greedy.

The following are some standard algorithms that are Greedy algorithms.

1) Kruskal’s Minimum Spanning Tree (MST): In Kruskal’s algorithm, we create an MST by picking edges one by one. The Greedy Choice is to pick the smallest weight edge that doesn’t cause a cycle in the MST constructed so far.

2) Prim’s Minimum Spanning Tree: In Prim’s algorithm also, we create an MST by picking edges one by one. We maintain two sets: a set of the vertices already included in MST and the set of the vertices not yet included. The Greedy Choice is to pick the smallest weight edge that connects the two sets.

3) Dijkstra’s Shortest Path: Dijkstra’s algorithm is very similar to Prim’s algorithm. The shortest-path tree is built up, edge by edge. We maintain two sets: a set of the vertices already included in the tree and the set of the vertices not yet included. The Greedy Choice is to pick the edge that connects the two sets and is on the smallest weight path from source to the set that contains not yet included vertices.

4) Huffman Coding: Huffman Coding is a loss-less compression technique. It assigns variable-length bit codes to different characters. The Greedy Choice is to assign the least bit length code to the most frequent character. The greedy algorithms are sometimes also used to get an approximation for Hard optimization problems. For example, the Traveling Salesman Problem is an NP-Hard problem. A Greedy choice for this problem is to pick the nearest unvisited city from the current city at every step. These solutions don’t always produce the best optimal solution but can be used to get an approximately optimal solution.

6 0
3 years ago
If you see an advertisement for a 3TB portable drive, this is most likely a reference to the device having a capacity of three _
s2008m [1.1K]
Terabytes






---------------------------------
4 0
3 years ago
Explain The main distinction between an ap course and a dual enrollment course.
V125BC [204]

Answer:

Overall, the main difference between the courses is the fact that AP classes require an AP exam, while Dual Enrollment classes just require a passing grade. This causes colleges to favor AP classes because they know exactly what you learned based on what you knew on the AP exam.

5 0
4 years ago
How do I add pictures to my questions on the mobile app?
taurus [48]
The camera is at the bottom of the screen,Take a pic
8 0
4 years ago
Other questions:
  • Grace is the sub-editor in a business firm. which feature of a word processing program would she use to make her changes visible
    14·1 answer
  • What is the FTC used car rule
    12·1 answer
  • Explain by details operator overloading in C++ with example
    6·1 answer
  • Write only in C, not C++.
    14·1 answer
  • Which of the following contains hardware systems similar to the affected organization but does not host live data?
    13·1 answer
  • A video streaming website uses 32-bit integers to count the number of times each video is played. in anticipation of some videos
    14·1 answer
  • How does the Evaluate Formula dialog box help fix errors?
    9·2 answers
  • What does the revolver do?
    10·1 answer
  • WNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOW
    11·1 answer
  • Why are digital computers more popular these days?​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!