Checkout
checkout
view
Your Cart Your Cart: item(s)
Add to Shopping Cart
$2.19 Instant Download
Computer Science, Data Structures and Algorithms
Other

Algorithm


1.Write an algorithm, using pseudo code, to perform one of the following tasks,* Given a string of numbers, identify all of the substrings that form numbers that are divisible by 3. For example, applying the algorithm on the string 37540 should produce the following substrings  (not necessarily in this order): 0; 3; 75; 54; 375; 540

2.Four prospectors with only one lantern must walk through a mineshaft.  At most, two prospectors can travel together and any prospector in the shaft must be with the lantern.  The prospectors, named Andrews, Blake, Johnson, and Kelly, can walk through the shaft in one minute, two minutes, four minutes, and eight minutes, respectively.  When two walk together they travel at the speed of the slower prospector.  How can the prospectors get through the mineshaft in only 15 minutes?  After you have solved this problem, explain how you got your foot in the door.

3.For example, find a simple algorithm for solving the following problem and classify it using big-theta notation:Divide a group of people into two disjoint subgroups (of arbitrary size) such that the difference in the total ages of the members of the two subgroups is as large as possible.Now change the problem so that the desired difference is as small as possible and classify your approach to the problem.

By OTA:  James Achuff, MBA

OTA Rating:  4.9/5

Your Price:  $2.19  (original value ~$3.99)

What's included:

  • Plain text response
$2.19 Download Add to Cart

Add to Shopping Cart
$2.19 Instant Download
Ambiguity in a proposed algorithm - Explain the distinction between an ambiguity in a proposed algorithm and an ambiguity in the representation of an algorithm.
Simple algorithm using the big theta - notation - Sometimes a slight change in a problem can significantly alter the form of its solution. For example, find a simple algorithm for solving the following problem and classify it using big-theta notation: Divide a group of people into two disjoint subgroups (of arbitrary size) such that the difference in the total ages of the members of the two su...
String of symbols - Suppose f is a function that returns the result of reversing the string of symbols given as its input, and g is a function that returns the concatenation of the two strings given as its input. If x is the string abcd, what is returned by g(f(x),x)? "Explain your answer".
How many cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer. - How many cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer.
Artificial Intelligence - Brains & Computers If the brain is a computer and the mind its workings, is this a fitting analogy of the computer and its software? What would happen if we had dedicated computers with a huge number of neuron circuits? Would intelligence develop? Would we be able to understand it

Page generated in 0.0557 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy

©2008 SolutionLibrary.com

Search for Solutions About Us Samples