"I am" statements are very well to communicate with people about your feelings in a non confrontational manner.
Answer:
I am writing a Python function:
def is_maxheap(list):
#finds the length of the list
size=len(list)
#loop has a variable i which starts traversing from root til end of last #internal node
for i in range(int((size - 2) / 2) + 1):
if list[2 * i + 1] > list[i]: #If left child is greater than its parent then return #false
return False
if (2 * i + 2 < size and
list[2 * i + 2] > list[i]): #checks if right child is greater, if yes then #returns false
return False
return True
Explanation:
The function is_maxheap() traverses through all the internal nodes of the list iteratively. While traversing it checks if the node is greater than its children or not. To check the working of this function you can write a main() function to check the working on a given list. The main() function has a list of integers. It then calls is_maxheap() method by passing that list to the function. The program displays a message: "valid max heap" if the list represents valid max-heap otherwise it returns invalid max heap.
def main():
list = [10,7,8]
size = len(list)
if is_maxheap(list):
print("Valid Max Heap")
else:
print("Invalid Max Heap")
main()
The program along with its output is attached in a screenshot.
Answer:a filserver is better for smaller companies
Explanation:
Hope this helps :)
Voice Over IP (VOIP) is the option that allows the transmission of voice and often video communication over the Internet.
So, this doesn't refer to mobile or other telephone communication, but rather to the Internet solely. Applications that are examples of this type of technology are Skype, Teamspeak, Ventrilo, and others. This technology is becoming better and better with each day and will probably replace phones completely in the future.
Since all terms have an x in them, you can first factor that out, yielding:
f(x) = x(x² - 6x + 9)
Then you are looking for numbers that multiplied give 9 and added give -6, which is -3 and -3. So the final factorization is:
f(x) = x(x-3)²