Which data is at the bottom of the heap

Assignment Help Data Structure & Algorithms
Reference no: EM131137819

When a binary tree heap is stored internally as an array, the data at index 4 of the array has a right child node at index ____ When a binary tree heap is stored internally as an array, the data at index 10 of the array has a parent node at index ____ Using text definition, insert 4, 9, 3, 7, 2, 5, 8, 6 into a binary tree heap. I end up with 2 at the root.

Which data is at the bottom of the heap?

Now remove the 2, 3, and 4, from your heap in above question, then which data is at the root:?

Reference no: EM131137819

Questions Cloud

Write your own version of wc : Write your own version of wc. Your program is to receive a text file as a command line argument and then count and display the number of lines and characters in that text file.
Determine the flow (qi) into the excavation : The excavation has to be kept dry. Determine the flow (qi) into the excavation
How much interest is paid over the life of the loan : How much interest do the borrowers in Problem 12 pay during the second year of the loan? In Problem 12, determine the monthly payment for a sixty-month truck loan with an annual percentage rate of 11% and an initial principal of $17,000. How much int..
What subjective factors would affect investment decision : Assume that the before-tax required rate of return for Deer Valley is 14%. Compute the before-tax NPV of the new lift and advise the managers of Deer Valley about whether adding the lift will be a profitable investment
Which data is at the bottom of the heap : Which data is at the bottom of the heap - Now remove the 2, 3, and 4, from your heap in above question, then which data is at the root:?
Passengers object to smoking inside the plane : An airline wants to test the null hypothesis that 60 percent of its passengers object to smoking inside the plane. Explain under what conditions they would be committing a type I error and under what conditions they would be committing a type II e..
Physical checkup to test the null hypothesis : A doctor is asked to give an executive a thorough physical checkup to test the null hypothesis that he will be able to take on additional responsibilities.
Show the content of the fields of the first 8 bytes : Show the content of the fields of the first 8 bytes of each IP packet received at the destination
The effectiveness of a modification in chemical composition : The average drying time of a manufacturer's paint is 20 minutes. Investigating the effectiveness of a modification in the chemical composition of her paint, the manufacturer wants to test the null hypothesis μ = 20 minutes against a suitable alte..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Sketch dynamic programming tables for knapsack problem

Sketch Dynamic Programming Tables (one for calculating optimal value and one for keeping track of items used in getting optimal value) for 0/1 Knapsack Problem given below and illustrate your final result.

  Auditing focuses on failures

Under normal situations, auditing focuses on failures to access rather than successful accesses. Explain why it might be a good concept to audit successful access to documents in a directory that contains highly confidential documents.

  Is the hypertext fiction non-linear

Does the author address a solid aspects of the topic in his/her wiki? Is the wiki fact driven? Meaning, does the content presented clearly influence how the wiki is constructed?

  Computations of database characteristics

A file has r=20,000 student records of fixed-length. Suppose the file is ordered by SSN; compute the number of blocks it takes to search for a record given its SSN value by doing a binary search.

  Give the time complexity of your algorithm

The input is the p programmes, for each i the number ai indicates the students from programme i, and the seating capacities of the q tables with table j seating bj people. Give the time complexity of your algorithm with a brief justification.

  Structural and behavioral models

Your analysis phase of the SRS project went well and your team feels good about their Functional, Structural, and Behavioral models. You also discussed the result of your analysis with the School of Prosperity (SoP) administration and they seem to be..

  Computing minimal length of key-average cracking time given

If Encrypt-It-Rite would like to increase average cracking time to at least 100 years, determine the minimal length of the key?

  Evaluate the asymptotic complexity

Evaluate the asymptotic complexity (Big Theta) int terms of n (not sum) for the given code fragment in the average case.

  Create a table that depicts the runtime for arrays

Create a table that depicts the runtime for arrays of length 1 to 10. Would you expect the general runtime to be O(n), O(n2), O(n3), or some other function of n? Explain.

  Algorithm on dynamic programming-minimize amount of walking

Our goal is to plan this trip so that we minimize the maximum amount of walking done in a single day. Your algorithm should be based on dynamic programming and run efficiently.

  How to work on datasturetur assignment kdfk dskf

kdfk dskf jkfjksdjkf jksdjfkjskfjksdjkf jksdjkf jsdkjfk dsk fkdsjkfj kdsjkf jdsk jksdjkf kdfk dskf jkfjksdjkf

  Part-1greatest common divisor show a recursive

part-1greatest common divisor show a recursive implementation of euclids algorithm for finding the greatest common

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd