Design algorithm that computes how many steps it will take

Assignment Help Data Structure & Algorithms
Reference no: EM131232199

Algorithm

Problem 2.17

There are n bacteria and 1 virus in a Petri dish. Within the first minute, the virus kills one bacterium and produces another copy of itself, and all of the remaining bacteria reproduce, making 2 viruses and 2 · (n - 1) bacteria. In the second minute, each of the viruses kills a bacterium and produces a new copy of itself (resulting in 4 viruses and 2(2(n - 1) - 2) = 4n - 8 bacteria; again, the remaining bacteria reproduce. This process continues every minute. Will the viruses eventually kill all the bacteria? If so, design an algorithm that computes how many steps it will take. How does the running time of your algorithm depend on n?

Problem 4.13

Given a long text string T, one shorter pattern string s, and an integer k, find the first occurrence in T of a string (if any) s such that dH(s, s ) ≤ k. What is the complexity of your algorithm?

Problem 4.14

Given a long text string T, one shorter pattern string s, and an integer k, find the first occurrence in T of a string (if any) s such that dH(s, s ) ≤ k. What is the complexity of your algorithm?.

All these qustion are from the book (Introduction to Bioinformatics Algorithms. Neil C. Jones and Pavel A. Pevzner, The MIT Press (ISBN: 0-262-10106-8)).

Reference no: EM131232199

Questions Cloud

Why ethics and confidentiality play an integral role : Differences between community setting and correctional setting case management, How the process will need to be altered for various special populations and Potential clients in need of case management at both settings.
Why has there been no movement to initiate such a proposal : An ongoing debate about the Superfund program is the determination of the optimal abatement level, characterized as the "how clean is clean" problem. Choose one of the risk management strategies, and propose how it might be used to resolve this is..
Why does riordan need a strategic plan : Address the following questions in your strategic plan: Why does Riordan need a strategic plan? What role should ethical and social responsibility considerations have in Riordan's strategic management plan
Determine the bit line voltages v1 and v2 : Determine the bit line voltages v1 and v2 after the cells are addressed for the case when (a) a logic 1 is stored and (b) a logic 0 is stored.
Design algorithm that computes how many steps it will take : Will the viruses eventually kill all the bacteria? If so, design an algorithm that computes how many steps it will take. How does the running time of your algorithm depend on n?
List the factors for rating the product quality : Create a rating tool for the product or service. List the factors for rating the product's quality and then rate your product or service from 1 to 10 (1 as the lowest, 10 the highest) for each factor
Create and describe a comprehensive security policy : Identify possible network infrastructure vulnerabilities. Address network vulnerabilities with the appropriate security measures. Ensure that consideration is given to virtualization and cloud technology.
Advantages and disadvantages of the swot analysis : Explain the purpose of a SWOT analysis. What are the alternatives? Discuss the advantages and disadvantages of the SWOT analysis
Discuss the likely impact on the health care industry : Analyze the two working models for understanding different health care systems and determine which model would be most useful to you in your current (or future) position in the health care industry. Provide specific examples to support your respon..

Reviews

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