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
balu736 [363]
2 years ago
15

With the use/abuse of alcohol the heart is less efficient.

SAT
1 answer:
Gala2k [10]2 years ago
6 0

Answer:

Explanation:

because it is overloading the heart with a non regular item.

You might be interested in
Which of the following is not a heterogeneous mixture
Bond [772]

Answer:

apples juice, salad oil, salt water

Explanation:

3 0
2 years ago
Boredddddddddddddd need somebody to talk toooo
zavuch27 [327]
Wassup my guyyyyyyyyyyyyyyyyyyyytt
5 0
3 years ago
Read 2 more answers
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
1 year ago
How did Hongwu follow the teachings of Confucius? by building chariots of porcelain by encouraging exploration beyond China by m
enot [183]

Answer:

The correct answer is D) by making sure that everyone could earn a living.

Explanation:

Hongwu, was the founder of the Ming Dynasty. He decided to make so reformations in the government of China that centralized much of decisions on him. He believed in the teachings of Confucious and the traditional rituals he taught. He followed the Mandate of Heaven and controlled every aspect of the Empire.

4 0
2 years ago
Read 2 more answers
At standard pressure which element has a melting point higher than standard temperature.
Komok [63]

The element that would melt at a higher temperature than the standard temperature is iron (Fe).

<h3>Melting point</h3>

The term melting point refers to the point where a solid is converted to a liquid. A pure substance has a sharp melting point while an impure substance melts over a temperature range.

Metals have a very high melting point hence the element that would melt at a higher temperature than the standard temperature is iron (Fe).

Missing parts:

At standard pressure, which element has a melting point higher than standard temperature?

(1) F2 (3) Fe

(2) Br2 (4) Hg

Learn more about melting point: brainly.com/question/491382

8 0
2 years ago
Other questions:
  • About 70% of our planet is covered by oceans. Compared to the depth of the solid portion of Earth, the water on Earth forms a
    5·1 answer
  • I need help finding a way to do this
    6·1 answer
  • How does this passage show that King Claudius is a round character? He represents the idea of religious devotion. He has suddenl
    6·2 answers
  • Do dinosaurs have chest hair??????
    9·2 answers
  • How should the moderator of the group respond to Donnie’s comment? She should ask him to leave the discussion and direct the gro
    9·1 answer
  • The electric field induces the flow of electrons, known as _____.
    13·1 answer
  • In the 1890s, how did yellow journalism influence the American opinion on the United States helping Cuba to fight against Spain?
    15·2 answers
  • Which three statements about the gilded age are true.
    8·1 answer
  • Does the justice system neglect forgiveness commonlit answer key.
    6·1 answer
  • In the reaction n2 + 3h2 ⇌ 2nh3, an experiment finds equilibrium concentrations of [n2] = 0. 1 m, [h2] = 0. 05 m, and [nh3] = 0.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!