How would you know how to store the letters

Assignment Help Game Theory
Reference no: EM13944896

You have TWO OPTIONS on how to send in this assignment (either way will get you the same credit):

[1] Either by HAND

e.g., WRITE OUT a little Table/Figure (use Excel Worksheet? MS Word "Table"? However you want to do it)
that will illustrate the 2 rows of Alphanumeric letters as follows (with OUT the "dots", of course. You'll have to fill
the alphanumeric characters:

Plaintext Letter: | abcdefghij...z ... ABCDEF ....Z 123456...0
------------------+------------------------------
Ciphertext Letter | gqkuiehjr... p ... VZRHPU ...T 869034...2

--- OR:

[2] Write a Program to do it. As far as a "random seed", you could get this accomplished by doing the following

(at least this is the way I would do it):

Let a random generator go from 1 to 26 for EACH SET of ALPHABET LETTERS (e.g., the CAPs and the LOWERCASE LETTERS), and from "0" to "9" for all of the NUMBERS. and use the process of elimination to let it GENERATE each RANDOM character.

o How would you know how to store the letters? Probably by having the original letters in an array/vector and use
their INDEXES as the NUMBERS GENERATED by the RANDOM GENERATOR.

(a) Have the random generator generate an "unused" letter, then STORE that letter into a global array/vector, etc.

(b) Then, use a "checking" method (that could possibly return a BOOL) to CHECK if the NEXT randomly generated
number has been used yet.

(c) If it HAS been used then let the random generator come up with ANOTHER number (until it generates an UNUSED NUMBER)

(d) If the number has NOT been used yet, then add that number to the NEXT INDEX of the array/vector us USED NUMBERS

(e) Do this in a LOOP until you have ALL of the 26 LETTERs ACCOUNTED FOR for each of the sets of ALPHA CHARACTERS,
and 1 through 10 (or 0 thru 9 if you are Zero-basing your indexes).

What Text to Decipher:

[1] If you're doing it by method [1] above (e.g., using a Word/Excel document: Decipher the words of the Declaration of Independence listed below:

IN CONGRESS, July 4, 1776.

The unanimous Declaration of the thirteen united States of America,

When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them,

[2] If you're using method [2] from above, have your program decipher the whole Declaration of Independence.

Reference no: EM13944896

Questions Cloud

Martin and siehl definition of organizational culture : Martin and Siehl define organizational culture as: "The glue that holds together an organisation through shared patterns of meaning, consisting of core values, forms and strategies to reinforce content".
Two bonds in his portfolio that both have face value : An investor has two bonds in his portfolio that both have a face value of $1,000 and pay a 9% annual coupon. Bond L matures in 14 years, while Bond S matures in 1 year. Assume that only one more interest payment is to be made on Bond S at its maturit..
What the advantages and disadvantage of paypal and eway : What's the advantages and disadvantage of "PayPal" and "eway"? (Different payment gateway) please discuss it include their website design .
How does a bill become law from start to finish : How does a bill become law from start to finish? Describe the constitutional bases of the presidency. Describe the express powers of the presidency.
How would you know how to store the letters : Have the random generator generate an "unused" letter, then STORE that letter into a global array/vector, etc.
Explain the philosophy of working in partnership : In relation to the given case studies above, explain the philosophy of working in partnership, Evaluate the effectiveness of partnership relationships within Health and Social care.
What led up to welfare reform and what does it mean : How is economic aid an instrument of American foreign policy? How is military deterrence an instrument of American foreign policy?
Case study-wal-mart company or robert bosch company : Choose one company " Wal-Mart company or Robert Bosch company". For this company, explain how successful you think it is and discuss the strategic reasons behind that success.
Critical observations about the work : Make some critical observations about the work (comparing and contrasting ideas with the work of others, noting limits in arguments, establishing key assumptions made).

Reviews

Write a Review

Game Theory Questions & Answers

  Use the best-response approach to find all nash equilibria

Player 1 has the following set of strategies {A1;A2;A3;A4}; player 2’s set of strategies are {B1;B2;B3;B4}. Use the best-response approach to find all Nash equilibria.

  A supplier and a buyer, who are both risk neutral

A supplier and a buyer, who are both risk neutral, play the following game,  The buyer’s payoff is q^'-s^', and the supplier’s payoff is s^'-C(q^'), where C() is a strictly convex cost function with C(0)=C’(0)=0. These payoffs are commonly known.

  Pertaining to the matrix game theory problem

Pertaining to the matrix need simple and short answers, Find  (a) the strategies of the firm (b) where will the firm end up in the matrix equilibrium (c) whether the firm face the prisoner’s dilemma.

  Nash equilibria

Consider the two-period repeated game in which this stage game is played twice and the repeated-game payo s are simply the sum of the payo s in each of the two periods.

  Find the nash equilibrium

Two players, Ben and Diana, can choose strategy X or Y. If both Ben and Diana choose strategy X, every earns a payoff of $1000.

  Construct the payoff matrix for the game

The market for olive oil in new York City is controlled by 2-families, Sopranos and Contraltos. Both families will ruthlessly eliminate any other family that attempts to enter New York City olive oil market.

  Question about nash equilibrium

Following is a payoff matrix for Intel and AMD. In each cell, 1st number refers to AMD's profit, while second is Intel's.

  Finding the nash equilibrium

Determine the solution to the given advertising decision game between Coke and Pepsi, assuming the companies act independently.

  Nash equilibria to determine the best strategy

Little Kona is a small coffee corporation that is planning entering a market dominated through Big Brew. Each corporation's profit depends on whether Little Kona enters and whether Big Brew sets a high price or a low price.

  Creating a payoff table

Suppose you and your classmate are assigned a project on which you will earn one combined grade. You each wish to receive a good grade, but you also want to avoid hard work.

  Determine the nash equilibrium for trade policy

Consider trade relations in the United State and Mexico. Suppose that leaders of two countries believe the payoffs to alternative trade policies are as follows:

  Find the nash equilibrium outcomes

Use the given payoff matrix for a simultaneous move one shot game to answer the accompanying questions.

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