# CS 4520 Georgia State University Algorithm Design and Analysis Project Need help with the assignment. should not be copied from chegg. should be unique LAS

CS 4520 Georgia State University Algorithm Design and Analysis Project Need help with the assignment. should not be copied from chegg. should be unique LAST NAME , FIRST NAME
CS 4520/6520 Summer 2020
Homework #2, out of 60 pts
Problem 1 [10pts]. Heapsort
Perform heapsort in the given max-heap, sort from largest to smallest value (descending order).
You should copy-paste template as many times as needed (and disregard extra nodes if they
appear in the template or in your later heaps drawings) and show each step/change.
Max-heap.
Take out 11 as the first element in sorted array of numbers. Then place … as a root node. Then…
This is the template to use.
Problem 2 [10pts]. BST, insertion
Insert key 7 as a root for the following binary search tree.
Use left and right rotations as needed. (First, you need to add key 7 to the tree in its correct
place, and then start rotating, as was shown in lecture). Show all steps.
Problem 3 [20pts].
Imagine youre a tourist on Manhattan, and this grid models it. You start at upper left corner
(with coordinates 0,0) and should end up at the bottom right corner (with coordinates 4,4).
Weights on edges indicate how many attractions you will see if you walk on that street/avenue.
Your goal is to see as many attractions as possible.
Fill in the matrices A (values, max numbers of attractions one can see up to that road
intersection) and B (arrows, so one can reconstruct the path).
a) Using greedy approach
A:
B: (copy-paste appropriate arrows) ? ? ? ?
b) Using Dynamic programming
A:
B:
Problem 4 [10pts]. Knapsack problem
You are given 5 items with weights 4,1,3,3,2 and respective values of 10, 7, 8, 9, 11.
Find the most valuable combinations of items that would fit in a knapsack of weight 8, by
constructing a DP table and calculating all values in the table. For the last two rows, show
explicitly how you use the formula from the slides.
(You are asked to do this to show understanding. Usually by performing such task, you finally
get it and see why formula works and is correct and what it actually states
)
Problem 5 [10pts]. LCS
By constructing a DP table, find the longest common subsequence for the two given sequences:
S1: ACCTGATCGA
S2: CTTACAGTAC
Your table has to be constructed in a fashion as was done in lecture, and should contain numbers
which represent how many common characters are found by now, and arrows so the LCS is reconstructible.

attachment

Don't use plagiarized sources. Get Your Custom Essay on
CS 4520 Georgia State University Algorithm Design and Analysis Project Need help with the assignment. should not be copied from chegg. should be unique LAS
Just from \$13/Page
Calculate the Price of your PAPER Now
Pages (550 words)
Approximate price: -

Why Choose Us

Top quality papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.

Free revisions

If you feel that we missed something, send the order for a free revision. You will have 10 days to send the order for revision after you receive the final paper. You can either do it on your own after signing in to your personal account or by contacting our support.

On-time delivery

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & confidential

We use several checkers to make sure that all papers you receive are plagiarism-free. Our editors carefully go through all in-text citations. We also promise full confidentiality in all our services.

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

## Calculate the price of your order

Total price:
\$0.00

How it works?

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.