Determine a good asymptotic upper bound

Assignment Help Data Structure & Algorithms
Reference no: EM132314822

Assignment - Advanced Algorithm Analysis

Aim: This assignment is designed to evaluate/improve your critical thinking and problem solving skills. It also evaluate/improve your coding skill.

1. For a tree T, let nI denote the number of its internal nodes, and let nE denote the number of its external nodes. Show that if every internal node in T has exactly 3 children, then nE = 2nI + 1.

2. Insert entries with keys, 2, 7, 3, 12, 5, 20, 14, 6, 11, 8, 15, 17, 1, 19, 23, 14 (in this order), into an empty:

(a) heap.
(b) binary search tree.
(c) AVL tree.
(d) (2, 4) tree.

3. Although merge sort runs in θ(n lg n) worst-case time and insertion sort runs in θ(n2) worst case time, the constant factors in insertion sort make it faster for small n. Thus, it makes sense to use insertion sort within merge sort when sub problems become sufficiently small.

Consider a modification to merge sort in which n/k sub lists of length k are sorted using insertion sort and then merged using the standard merging mechanism, where k is a value to be determined.

i) Show that the n/k sub lists, each of length k, can be sorted by insertion sort in θ(nk) worst-case time.

ii) Show that the sub lists can be merged in θ(n lg(n/k)) worst-case time.

iii) Given that the modified algorithm runs in θ(nk + n lg(n/k)) worst-case time, what is the largest asymptotic (θ-notation) value of k as a function of n for which the modified algorithm has the same asymptotic running time as standard merge sort.

4. Consider the recurrence T(n) = 3T(⌊n/2⌋) + n.

i) Use the master method to give tight asymptotic bound for this recurrence (if the master method cannot be used, explain why).
ii) Use a recursion tree to determine a good asymptotic upper bound on this recurrence.
iii) Use the substitution method to verify your answer.

5. Show all the steps for performing any of the following algorithms for matching the pattern ‘rithm' in the text ‘advancedalgorithmanalysis'.
(a) brute-force
(b) Boyer-Moore
(c) Knuth-Morris-Pratt

Verified Expert

The report consists of the solution to various questions from advanced algorithms.There is a total of five questions, which are answered in this report.Questions are based on the concepts of trees, graphs, time complexity, and space complexity.It also contains a numerical solved using the concept of recurrence relation and masters theorem.Pattern matching algorithms are also discussed with the help of the given example.

Reference no: EM132314822

Questions Cloud

Which code snipped correctly imports the java arraylist : Of the sorting algorithms we've learned election sort, insertion sort, and merge sort is merge sort the fastest in every case? Why?
Write about any one of the weekly articles : BUSN20017 - Effective Business Communications - how to identify and interpret the different parts of this written academic communication genre
Prepare the journal entries and t-accounts : Prepare the Journal Entries (including the closing entry), T-accounts, and all four Financial Statements (in good form) - Prepare the Journal Entries
How contemporary issues affecting sustainable tourism : You are required to prepare an extended literature review addressing how contemporary issues are affecting the nature of sustainable tourism development
Determine a good asymptotic upper bound : CP5602 - Advanced Algorithm Analysis - James Cook University - This assignment is designed to evaluate/improve your critical thinking and problem solving skills
Design a library system for Kent Institute : You are required to design a library system for Kent Institute. Decide the appropriate variables, keys and ranges to be used in the system. Justify
Write a case study on your chosen population group : Pick ONE population group within a geographical area - Write a case study on your chosen population group. Start researching the health issues
Find measures of central tendency and variation : Describe at least one example of two variables (from your workplace experiences) that are strongly correlated. How does this affect how you interpret
Develop and incorporate a neural network : 300056 - Robotics - Western Sydney University - Neural networks for robot control - implement a given computed-torque controller (CTC) in Simulink for robot

Reviews

inf2314822

8/12/2019 3:11:14 AM

Excellent job is done. Every code and algorithm functions are very well explained. High level of perfection can be seen in the work. The writer has good subject knowledge provided a proper explanation for each step. I am impressed with the work.

inf2314822

8/12/2019 3:08:58 AM

Properly ensure before starting that you have understood the assignment requirement well. Coding part needs to be done as per the steps required to be included in it. Show all the performed algorithm in the pattern in your report.

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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