Create a word doc comparing your predicted average

Assignment Help Computer Engineering
Reference no: EM132134791

Can Someone please help me with this please:

Task:

The purpose of this assignment is to empirically measure attributes for binary search trees.

Steps:

Create a program that will build a binary search tree (BST) by adding new elements one at a time.

You may use whatever data structure you wish for this BST.

For any node in the BST, the left subtree contains keys <= the root, and the right subtree keys > the root.

Predict the average number of nodes you must visit to determine if a given key is in a BST consisting of 100 nodes, where keys are integers between 1 and 100, based on a tree's height.

Use your program to create 100, 100 node BSTs by randomly adding integers between 1 and 100.

For each of these 100, randomly generated BSTs, determine (a) its height, and (b) the average number of nodes visited to determine if a key is in the tree.

Search for all values between 1 and 100.

Create, using Excel, a graph plotting tree height versus average search length, using both your predicted and empirical data.

Create a Word doc comparing your predicted average search lengths with your empirically derived values. If they differ, discuss why. If they are the same, discuss why.

Submit:

Source code

Excel workbook

Word doc summarizing experimental findings

Reference no: EM132134791

Questions Cloud

How many files are related to hard disk devices : Delete all partitions on the disk, and recreate a primary partition and an extended partition with 2 logical partitions.
What is the value of retirement plan : Then you are able to increase the contribution to $500 per month for 20 years. Given a 9 percent interest rate, what is the value of your retirement plan after
Calculate the npv of alternative : You have inherited an apple orchard and want to sell it in the next four years. An expert in apple orchard valuation has estimated the after-tax cash flow
Different steps in the project development : Complete the design for the critical, core, risky, difficult (CCRD) use case; create a comprehensive test plan and build a prototype for the CCRD use case
Create a word doc comparing your predicted average : Create a Word doc comparing your predicted average search lengths with your empirically derived values.
What is the ytm of the bond : The bond sells for $961.87 and matures in 21 years. The par value is $1,000. What is the YTM of the bond?
Do you think sharing such details is a good approach : Sometimes when we visit super markets, we may share our personal details to get (for example) "Loyalty cards" and other benefits.
What stock price would you consider appropriate : Sankey Co. has earnings per share of $4.15. The benchmark PE is 19.2 times. What stock price would you consider appropriate?
Cost of new common stock financing : If the last dividend was $.91 and the growth rate is 2.1%, what is the cost of new common stock financing?

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is the customization index for application?

What is the customization index for this application?

  Write a program that reads a square array of integers

Write a program that reads a square array of integers and determines whether or not it is a magic square.

  Explain why file systems are critical components of an os

Outline the steps necessary to prepare a storage device for storing files. Identify and briefly describe the tools used to prepare a storage device.

  Draw a schema of speech recognition to improve pronunciation

Draw a schema of speech recognition to improve pronunciation. It will include human being, microphone, computer, text to read and transcript.

  Cmg is also considering expansion into other markets

CMG's IT department consists of about 70 people. The department is broken up into the Technical Services group and an Application Development group. Project managers, business analysts, and application developers are within the application develop..

  Write a program where the user enters the value of the mass

Write a program where the user enters the value of the mass m and the program determine the greatest speed at which it can be whirled without breaking the rope.

  Explainnbspto tednbspwhatnbspa supply chain management scm

in 1985 ted thomas took 6000 of his savings borrowed another 4000 from his best friend and opened a bike rental

  What causes some operating systems to gain in popularity

What conclusions can be drawn about the evolution of operating systems? What causes some operating systems to gain in popularity and others to fade?

  Writing a program that creates three instances

Demonstrate the class by writing a program that creates three instances of it. One instance should hold your information, and the other two should hold your friends' or family members' information.

  Creating a print chart or sample output

suppose you have a bank account that compounds interest on a yearly base. In other words, if you deposit 100 dollars for two years at 4 percent interest, at the end of one year you will have $104 .

  Explain two benefits of using java over machine code

Explain two benefits of using Java over machine code. Which parts of a computer can store program code? Which can store user data?

  Determine the total project duration

Draw by hand the bar chart (Gantt chart) with logic links and draw by hand the activity-on-node (AON) network diagram showing the schedule.

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