Write an algorithm using pseudo code word search given a


1. Write an algorithm, using pseudo code, "Word Search": Given a string of letters, identify all substrings that create one of five given words. For example, if the words (arguments) are: structure; such; system; blue; red, then the string jkdistructuredstrusyssystemoon contains the first, third and fifth words, once each.

2. Write an algorithm, using pseudo code, "Consensus algorithm": A group of ten people need to decide which one flavor of ice cream they will all order, out of three options. The algorithm can question and re-question the participants, and present the answers to the participants, until a consensus is reached. This exercise is somewhat more open-ended. Add your assumptions if necessary. Obviously, this algorithm might never result in an answer. Deal with that too.

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Write an algorithm using pseudo code word search given a
Reference No:- TGS01253582

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)