Q1 determine the minimum weighted path length p for six

Assignment Help Data Structure & Algorithms
Reference no: EM13347972

Q.1. Determine the minimum weighted path length P for six weights 4, 15, 25, 5, 8, 16. Draw the huffman tree also for the given weights. Evaluate the huffman code for each weight.

Q.2. Determine the Inorder, preorder and postorder traversal for the given tree:

2120_Determine the Inorder - preorder and postorder traversal.png

Q.3. Convert the subsequent expressions in binary expression tree.

A - (B*C) + D $ (E*F)

(b) (A-B) * (B-C) / (C-D)

(c) (3x+4y) - (5x/7y)2

After constructing the expression tree evaluate the inorder, preorder and postorder traversals.

Q.4. (a) Prepare a binary tree. Given,

Post Order: D H I E A J F N P G C B.

Inorder: D H A I E B F J C N G P

(b) Prepare a binary tree. Given,
Preorder: D B C A G E F H I J.
Inorder: B C D G E A H F I J

(c) Prepare a binary tree. Given,
Preorder: K A E F C D H L B
Inorder: E A C F K H D B L

Q.5. Perform the subsequent operations in BST:
Insert Z, A, C, D, B, E, F, N, M, P, T, U, R, O, Q.
Delete M and then D.

Q.6. Prepare an AVL tree by inserting the subsequent elements in order of their occurrences:
44, 10, 11, 96, 7, 14, 53, 47, 50, 101, 4, 1
Then Delete 7, Delete 47 and then delete 101.

Q.7. A 3 way search tree constructed out of an empty search tree with subsequent keys in order as given: D, K, P, V, A, G. Then Delete A and K.

Reference no: EM13347972

Questions Cloud

Design a dedicated datapath for inputting three 8-bit : design a dedicated datapath for inputting three 8-bit unsigned numbers and then output the. largest number followed by
Prepare a set-list for a social gathering you must : prepare a set-list for a social gathering. you must intentionally select music that suits the purpose of the
Quantitative analysis for decision making class1- write a : quantitative analysis for decision making class.1- write a summary with review item.2- outliers tell the story about
1 consider the following attributed tree grammar for type : 1. consider the following attributed tree grammar for type checking a program ast. for simplicity it hard codes
Q1 determine the minimum weighted path length p for six : q.1. determine the minimum weighted path length p for six weights 4 15 25 5 8 16. draw the huffman tree also for the
Problem 1 will company has a 20 percent marginal tax rate : problem 1 will company has a 20 percent marginal tax rate and uses a 12 discount rate to evaluate npv. the firm started
Case study snedeker global cruisesit was august 7th and : case study snedeker global cruisesit was august 7th and brandt womack had just been provided his first assignment by
1 listed below are account balances taken from the adjusted : 1 listed below are account balances taken from the adjusted trial balance of alpha inc. as of december 31
1 industry definitionhow can you define the industry in : 1. industry definitionhow can you define the industry in which your assigned website belongs? which other companies are

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Determine complete list of nodes which ancestor

Let the following tree: tree a. Determine the children of Q? b. What is the complete list of nodes which have D as ancestor? c. Determine the height of this tree (as height is defined in text)?

  Creating an exception class and applet file

Create an applet document that prompts the user for an ID number and an age. Construct an Exception class and throw an Exception of that class if the ID is not in the range of valid ID numbers.

  Determine effective transfer rate

Assume a network transmits 1024 byte packets having a 128-byte header and a four byte checksum. If a workstation on the network is guaranteed to be able to transmit one packet every x time units,

  Create an idef1x entity relationships diagram

The Metropolitan Housing Agency is a non profit corporation that advocates the development and improvement of low income housing.

  Consider a queue data structure

Consider a queue data structure, where the two operations of interest are enqueue (at the back of the queue) and dequeue (from the front of the queue). A queue is thus a FIFO (first in-first out) structure. Suppose we implement a queue by using tw..

  Website creation

Construct a basic, generic structure of a web site. Name it something generic etc. Demonstrate some basic layout of the content of the pages.

  How many different undirected graphs are there with v vertix

Graph enumeration: How many different undirected graphs are there with V vertices and E edges (and no parallel edges)? Assume the graph is represented in adjacency-list form

  Creating a database with asp.net

Make a database with a table called "MyUsers" and "MyRole" The table should have the following columns.

  C program that accepts a month and day

Make a C program that accepts a month and day for example, June 14 from the keyboard as input. Store this data in a string called date.

  Finding equation has no solutions mod m

Let the equation ax = b mod m, where x is unknown and a, b and m are given. Illustrate that this equation has either no solutions mod m, or d solutions mod m.

  Write a c++ program to find the intersection

Write a C++ program to find the intersection, A set is a collection of distinct entities regarded as a unit, being either individually specified or (more usually) satisfying specified conditions.

  Homogeneous array

Assume that a homogeneous array with six rows and eight columns, is stored in row major order starting at address 20. If each entry in the array requires only one memory cell.

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