Write a program that randomly selects letters

Assignment Help Computer Engineering
Reference no: EM131352894

Conduct an experiment to see how well a model can describe a source.

(a) Write a program that randomly selects letters from the 26-letter alphabet [a,b,..., z} and forms four-letter words. Form 100 such words and see how many of these words make sense.

(b) Among the accompanying data sets is a file called 4letter.words, which contains a list of four-letter words. Using this file, obtain a probability model for the alphabet. Now repeat part (a) generating the words using the probability model. To pick letters according to a probability model, construct the cumulative density function (cdf) Fx(x) (see Appendix A for the definition of cdf). Using a uniform pseudorandom number generator to generate a value r, where 0 1 if Fx(xk - 1) x(xk). Compare your results with those of part (a).

(c) Repeat (b) using a single-letter context.

(d) Repeat (b) using a two-letter context.

Reference no: EM131352894

Questions Cloud

Compute the second order entropy : Write a program to compute the first-order entropy of some of the image and speech files.- Pick one of the image files and compute its second-order entropy.
How alleles influence the inheritance of traits : Develop a chart or diagram that will illustrate how alleles influence the inheritance of traits such as through: dominant-recessive inheritance, incomplete dominance, X-linked inheritance, genomic imprinting, mutation, or polygenic inheritance
Demonstrate that the transforming principle is dna : How might 32P and 35S be used to demonstrate that the transforming principle is DNA? Briefly outline an experiment that would show that DNA rather than protein is the transforming principle.
Does it experience a field in all quantum states : Just what is the spin-orbit interaction? How does it lead to the observed fine-structure splitting of the spectral lines of the hydrogen atom?
Write a program that randomly selects letters : Write a program that randomly selects letters from the 26-letter alphabet [a,b,..., z} and forms four-letter words. Form 100 such words and see how many of these words make sense.
Explain in physical terms the origin of the selection rules : Do all atoms pf a certain species take the same time to make a transition between a certain pair of levels?
What is educational technology : Write a paragraph between 200 and 250 words answering - What is educational technology has helped you learn the most?
How tree develops when the sequence a a r d v is transmitted : How the tree develops when the sequence a a r d v is transmitted. Continue this example with the next letters in the sequence, ark.
What are the torque on the dipole : The field of an electromagnet is given by B = 0.02 + 0.0115z2, with B in tesla and z = distance in cm from the north pole of the magnet.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Accessing and reading a mouse

Accessing and reading a mouse

  Unix is a command line interface it uses many commands to

unix is a command line interface it uses many commands to complete basic functions. when i think about the command line

  What is standard purchasing system

SPS system would standardize purchasing practices for each Snad and Surf subsidiary and manage all purchasing information. System testing will be completed by end of the week. What kinds of documentation are required for this application?

  Develop a contingency plan to mitigate risk

Where should staff meet in the event the network is not accessible - Who has the authority to initiate a contingency plan?

  Program that counts the number of occurrences of lowercase

Write a program that counts the number of occurrences of lowercase and uppercase vowels in entered lines of text. Use a two-dimensional array to store the vowel counts.

  Decompose the application using data flow diagrams

Decompose the application using data flow diagrams, system architecture diagrams, and a table describing the main components and users of the system;

  Create a c++ output format statement

Create a C++ output format statement which would generate lines in the table which appear as shown below.

  Determine the type of computer forensic skill and procedures

Determine the type of computer forensic skills and procedures or tools that could have been used to extract and preserve the data. Interpret how you believe a computer was used to commit the crimes they were being accused of.

  Give difference between testing and debugging

You have just been hired as the testing guru for the CatchAllBugs.com Company. Your first task is to write a set of test cases to debug a small VB program. Unfortunately, you do not have access to the code of program. All you have is the following ..

  Vulnerabilities in purchasing through debit card

Recognize any potential vulnerabilities in act of making a purchase through the debit card, and which area of the CIA triad they apply to.

  Questionthink about a cellular system with a total

questionthink about a cellular system with a total bandwidth of 30 mhz. each full duplex voice or control channel uses

  Discuss the advantages of the approach

Briefly explain the main problem addressed and why you have found it interesting - Classify to which topic from the aforementioned areas this paper belongs.

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