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
CaHeK987 [17]
2 years ago
5

If a box of clothes weighing 10 lbs (4. 5 kg) and a box of books weighing 10 lbs (4. 5 kg) were placed on a scale, what is most

likely to occur?.
SAT
1 answer:
S_A_V [24]2 years ago
4 0

Answer:

I think nothing there are equal

You might be interested in
Once you have your heap structure created, next you must use it as a backing structure to a priority queue. Develop a PriorityQu
saveliy_v [14]

Using the knowledge in computational language in python it is possible to write a code that Develop a PriorityQueue data structure in a file.

<h3>Writting the code in python:</h3>

<em>import sys</em>

<em>class Node:</em>

<em>def __init__(self,key):</em>

<em>self.left = None</em>

<em>self.right = None</em>

<em>self.val = key</em>

<em>self.parent = None</em>

<em>class MinHeap:</em>

<em>def __init__(self, maxsize):</em>

<em>self.maxsize = maxsize</em>

<em>self.size = 0</em>

<em>self.Heap = Node(-1 * sys.maxsize )</em>

<em>self.FRONT = self.Heap</em>

<em># A utility function to do inorder tree traversal</em>

<em>def isLeaf(self, node):</em>

<em>if node.left == None and node.right == Node:</em>

<em>return True</em>

<em>return False</em>

<em># Function to swap two nodes of the heap</em>

<em>def swap(self, node1, node2):</em>

<em>node1.data, node2.data = node2.data, node1.data</em>

<em># Function to heapify the node at pos</em>

<em>def minHeapify(self, node):</em>

<em># If the node is a non-leaf node and greater</em>

<em># than any of its child</em>

<em>if not self.isLeaf(node):</em>

<em>if (node.data > node.left.data or</em>

<em>node.data > node.right.data):</em>

<em># Swap with the left child and heapify</em>

<em># the left child</em>

<em>if node.left.data < node.right.data:</em>

<em>self.swap(node, node.left)</em>

<em>self.minHeapify(node.left)</em>

<em># Swap with the right child and heapify</em>

<em># the right child</em>

<em>else:</em>

<em>self.swap(node, node.right)</em>

<em>self.minHeapify(node.right)</em>

<em># Function to insert a node into the heap</em>

<em>def insert(self, element):</em>

<em>if self.size >= self.maxsize :</em>

<em>return</em>

<em>self.size+= 1</em>

<em>self.bst_insert(FRONT, element)</em>

<em>current = FRONT</em>

<em>while current.parent != None and current.data < current.parent.data:</em>

<em>self.swap(current, current.parent)</em>

<em>current = current.parent</em>

<em># Function to print the contents of the heap</em>

<em>def Print(self):</em>

<em>self.inorder()</em>

<em># Function to build the min heap using</em>

<em># the minHeapify function</em>

<em>def inorder(self, root):</em>

<em>if root:</em>

<em>inorder(root.left)</em>

<em>print(root.val)</em>

<em>inorder(root.right)</em>

<em>def bst_insert(self, root, node):</em>

<em>if root is None:</em>

<em>root = node</em>

<em>else:</em>

<em>root.next = node</em>

<em>self.FRONT = node</em>

<em># Driver Code</em>

<em>if __name__ == "__main__":</em>

<em>r = Node(50)</em>

<em>bst_insert(r,Node(30))</em>

<em>bst_insert(r,Node(20))</em>

<em>bst_insert(r,Node(40))</em>

<em>bst_insert(r,Node(70))</em>

<em>bst_insert(r,Node(60))</em>

<em>bst_insert(r,Node(80))</em>

<em># Print inoder traversal of the BST</em>

<em>inorder(r)</em>

<em>print('The minHeap is ')</em>

<em>minHeap = MinHeap(15)</em>

<em>minHeap.insert(5)</em>

<em>minHeap.insert(3)</em>

<em>minHeap.insert(17)</em>

<em>minHeap.insert(10)</em>

<em>minHeap.insert(84)</em>

<em>minHeap.insert(19)</em>

<em>minHeap.insert(6)</em>

<em>minHeap.insert(22)</em>

<em>minHeap.insert(9)</em>

<em>minHeap.minHeap()</em>

<em>minHeap.Print()</em>

<em>print("The Min val is " + str(minHeap.remove()))</em>

See more about python at brainly.com/question/13437928

#SPJ1

6 0
2 years ago
If xy=300 &amp; abc=3 then to+do​<br><br><br>plzz answer <br>very urgent
alexandr1967 [171]

Answer:

but why................m..

4 0
3 years ago
According to the government have to do right to understand the risk associated with the material they wake me
podryga [215]
This question doesn't make sense. type again.
the u.s. government says we have rights, yes. which right are u questioning.
7 0
4 years ago
Pls help me this sis due in ten minutes and and no guessing
arsen [322]

Answer:

Explanation:Jews

good luck and God bless! :)

6 0
3 years ago
Read 2 more answers
During a rainfall, the depth of water in a rain gauge increases at a rate modeled by r(t)=0.5+tcos(πt380) r ( t ) = 0.5 + t cos
Tresset [83]

The function r(t)= 0.5 + t cos(πt³/80) is an illustration of a cosine function

The depth of water in the rain gauge increases by 1.466cm from t = 0 to t = 3

<h3>How to determine the increase in water depth?</h3>

The function is given as:

r(t)= 0.5 + t cos(πt³/80)

When t = 0, the depth of water is:

r(0)= 0.5 + 0 * cos(π *0³/80)

Evaluate

r(0) = 0.5

When t = 3, the depth of water is:

r(3)= 0.5 + 3 * cos(π *3³/80)

Evaluate

r(3)= 1.966

Calculate the difference (d) in the depths

d = r(3) - r(0)

So, we have:

d = 1.966 - 0.5

Evaluate

d = 1.466

Hence, the depth of water in the rain gauge increases by 1.466cm from t = 0 to t = 3

Read more about cosine functions at:

brainly.com/question/17075439

4 0
3 years ago
Other questions:
  • What is the measure of angle x?<br><br><br> X= ?
    10·1 answer
  • Lynnette is using a digital scale to find the mass of a piece of fruit. If the mass is 17 grams
    14·1 answer
  • A kayaker paddles along a river for 4 hours. In that time, she manages to move a total of 20 miles. What is the average speed of
    5·1 answer
  • Help me find the answer
    14·1 answer
  • What forces cause sedimentary rocks to be transformed into metamorphic rocks brainly
    15·1 answer
  • Solve the equation. –3x 9 = –3(2x 3) 3(x – 4) 1 How many solutions does this equation have? one solution two solutions infinitel
    13·1 answer
  • Choose which answer choice best answers the following question. Aristotle created the first classification system. He sorted org
    12·1 answer
  • Which effect are children who receive unconditional love most likely to display?.
    15·1 answer
  • A large-scale work often performed during Lent, when opera was forbidden
    6·1 answer
  • Who are the actors in the meningitis b vaccine commercials
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!