Question: Problem 1 . ( 3 0 points ) a . Construct a heap for the list 2 , 1 5 , 1 2 , 1
Problem points
a Construct a heap for the list by the bottomup algorithm. p
b Construct a heap for the list by successive key insertions topdown algorithm p
c Is it always true that the bottomup and topdownfalgorithms yield the same heap for the same input? p
Problem points
Consider the problem of searching for genes in DNA sequences using Horspool's algorithm. A DNA sequence consists of a text on the alphabet and the gene or gene segment is the pattern.
a Construct the shift table for the following gene segment of your chromosome : p
TCCTATTCTTT
b Apply Horspool's algorithm to locate the above pattern in the following DNA sequence: p
TTATAGATCTCGTATTCTTTTATAGATCTCCTATTCTTT
Problem points
For the input and hash function Kmod
a Construct the open hash table. Find the largest number of key comparisons in a successful search in this table. p
b Construct the closed hash table. Find the largest number of key comparisons in a successful search in this table. p
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
