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
arlik [135]
3 years ago
9

I need y’all to answer this ASAP no rocky.

SAT
2 answers:
Kisachek [45]3 years ago
8 0

Answer:

Decision making

Explanation:

being able to analyze possible outcomes for a decision is the ability to make decisions(thats the best explanation I could think of idk)

RideAnS [48]3 years ago
5 0

Answer:

c maybe im not rlly sure

Explanation:

You might be interested in
Which statement best describes the density of the outer planets
Ugo [173]
Where are the statements?
6 0
3 years ago
Read 2 more answers
What type of energy is associated with food? How is that energy stored? How does food energy change when it is used to do work?
AVprozaik [17]
The energy associated with food is chemical energy.

The food contain carbohydrates, proteins, vitamins and minerals, that are used by chemical reactions in the live organisms (the metabolism) to build the cells that form our tissues (muscles, bones, blood).

The chemical energy is stored as chemical bonds in the cells and is released when the bonds break giving energy that we use to run about, and move and talk (kinetic and sound energy).
3 0
3 years ago
How many types of body of water are there
marta [7]

Answer: 47 Types of Bodies of Water.

Explanation:

pls like

8 0
2 years ago
scientists say that researching genes will help find solutions for diseases that affect humans. is this true? Give reasons for y
Nataliya [291]
When genetic molecules are broken down and deciphered under a large scale then the defects can be magnified and researched and further stopped. Hopefully with the scientific advancements at hand and with enough people to come forward to participate in the study these diseases and genetic defaults will cease.
4 0
3 years ago
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
Other questions:
  • Helppppp me please please pleaaseeeeeeee
    15·1 answer
  • Which of the following answer choices should be eliminated first from this question?
    5·1 answer
  • Carlo is wondering what causes plants to grow at different rates. Carlo’s hypothesis is “Plants will grow more when the day is l
    7·2 answers
  • Which of these career clusters sound most interesting to you? Check all that apply. Agriculture, Food, and Natural Resources Arc
    11·2 answers
  • If you put hot sauce in the freezer wouldn't it be cold sauce???????????? BUT A FUNNY JOKE IF YOU ANSWER THE FUNNIEST ONE GETS B
    6·2 answers
  • the function ​s(x) gives a​ person's average speed in miles per hour if he or she travels one mile in 60x seconds. use a linear
    8·1 answer
  • Which functions have a vertex with a x-value of 0? select three options.
    11·1 answer
  • Which quote from "mr. Flood's party" best supports your answer to #5? question 6 options: "there was not much that was ahead of
    11·1 answer
  • Question The passage mainly discusses which trait of Norman's? O Her intelligence O Her longevity O Her versatility O Her temper
    7·1 answer
  • Who is responsible for protecting CUI?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!