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
Rasek [7]
3 years ago
5

Kayla why are you not c h a t i n g on ro blox

SAT
2 answers:
nlexa [21]3 years ago
7 0

Answer:drugs

Explanation:

only explanation is they are addicted to drugs

aalyn [17]3 years ago
5 0
You better c h a t kayla
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
1 year ago
Use the passages Silent Spring and "Save the Redwoods" to answer the following question. Considering the authors’ use of appeals
tino4ka555 [31]

Answer: paragraph 4 of “Save the Redwoods”

Explanation: i did the test

7 0
2 years ago
Read 2 more answers
A gas that has a volume of 28 liters, a temperature of 450c, and an unknown pressure has its volume increased to 34 liters and i
sp2606 [1]

Answer:

2.82 atm

Explanation:

Initial:

V1 = 28 liters, T1 = 450 C = 450 + 273 K = 723 K, P1 = ?

Final:

V2 = 34 liters, T2 = 350 C = 350 + 273 K = 623 K, P2 = 2.0 atm

Use P1 * V1 / T1 = P2 * V2 / T2

so P1 = P2 * (V2/V1) * (T1/T2) = 2.0 * (34/28) * (723/623) = 2.82 atm

4 0
2 years ago
How do hobbes locke and rousseau understand the state of nature and the social contract differently
Yakvenalex [24]

Hobbes theory of social contract basically supports absolute sovereign without giving any value to individuals, while Locke and Rousseau supports individual than the state or the government.

Given that Hobbies, Locke and Rousseau understand the state of nature and the social contract differently.

We are required to tell how each understand the state the nature of social contract differently.

Hobbes theory of Social Contract basically supports absolute sovereign without giving any value to individuals, but  Locke and Rousseau supports individual than the state or the government.

Hence Hobbes theory of social contract basically supports absolute sovereign without giving any value to individuals, while Locke and Rousseau supports individual than the state or the government.

Learn more about social contract at brainly.com/question/17260213

#SPJ4

6 0
1 year ago
What is montaigne’s view of human nature versus modern civilization? how does he use the concepts of barbarism, wildness, and bl
steposvetlana [31]

Montaigne’s view of human nature versus modern civilization, the difference between Montaigne's thinking and also the reality of the soul in modern civilization is that Montaigne postulated that the humans are creatures who cannot control themselves and their environment, con to the current idea, in modern civilization there's a longtime concept of an autonomous man.

He begins by saying that we as humans are put together by many alternative pieces are consistent. This, he believes may be a down fall in mankind because it implies that everything is randomized.

In his essay, Montaigne glorifies nature, destitute of human artifice, and everything natural.

Montaigne points out that can't even control the planet that they're living in. Montaigne points out that other creatures like animals could also be superior to humans thanks to the thought that every one humans are the beasts. it's vital to notice that each one the views held by Montaigne were meant to be little the importance of a person and to portray his inferiority within the universe. Additionally, these views imply that a person doesn't have the authority to require control over other creatures because they're more superior to him.

Barbarism is for Montaigne a troubling term, specifically considering that it is too easy for civilized man to condemn the customs of barbarians, who live lives more natural, and therefore more beautiful, than civilized man. Even he said that no society is likely to improve itself by declaring other societies inadequate, particularly if the standard of judgement is dissimilarity of custom rather than reason.

To know more about Montaigne here

brainly.com/question/2954606

#SPJ4

7 0
1 year ago
Other questions:
  • Please help i will mark brainlyest
    9·2 answers
  • The ACT reading test covers all of the following except:
    15·2 answers
  • From New York, NY to Cancun, Mexico it is 3,396 miles. If the family goes on a road trip and drives the same number of miles eac
    6·2 answers
  • The phrase "You dirty rat" does rats a disservice. In a recent study,1 rats showed compassion that surprised scientists. Twenty-
    8·1 answer
  • akshay worked at a cafe while he was a college senior in boston, massachusetts. after graduating in june, he moved back to his h
    7·1 answer
  • Hola que me recomiendan para entender mas otro idioma que no es el mio?
    11·1 answer
  • In air, a sound wave with a frequency of 196 hz has a wavelength of about 1.76 meters. what is the wavelength of a wave if the f
    10·1 answer
  • Kingston federal bank oversees all the banks in jamaica. One jamaican dollar is equal to 0. 0071 us dollar. If usain bolt made o
    11·1 answer
  • If 4^3a/8^b=1, what is a/b?<br><br>A. 1/3<br>B. 1/2<br>C. 3/4<br>D. 4/3
    9·1 answer
  • if y is directly proportional to the square root of x, what is the missing value of Y in the table above
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!