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

  Draw a physical level 0 dfd for the given system

Draw a physical level 0 DFD for the following system and compare it with the logical model that you created in Chapter 5. A Video Store (AVS) runs a series of fairly standard video stores.

  Related to super and sub class

Write down a class definition for subclass LawSchool which consists of: A (default) constructor which invokes the superclass constructor along with the value 3 (law school is typically a three year program).

  Computer platformscomputer systems may be classified into

computer platformscomputer systems may be classified into two categories classical and quantum. this assignment will

  Computer rendering of stochastic models

Prepare a slideshow on Computer rendering of stochastic models

  Design should show each object''s encapsulated methods

make a class diagram (in Visual Studio 2008 C#) based on the following scenario: When constructing classes that will represent objects in a system, it is important to ensure the integrity of those objects and be able to define the types of relatio..

  Is the www changing users collectively

Is the WWW changing users collectively or individually in profound or superficial ways? Can we see new cultural values being shaped or sub-cultures being formed that may permanently affect our cultural values.

  Database and characteristics of database

Explain the Database and describe the four characteristics of the database? Explain the Relational Database and generate a relational database for 5 employees.

  Create a set of use cases for an online registration system

Create a set of use cases for an online university registration system. The system should enable the staff of each academic department to examine the courses offered by their department.

  How can the average person fight this

Recent news articles are talking about how Internet is being used as a method of posting slanderous, private or simply unverified information.

  The dynamic programming algorithm

How many different optimal subsets does the instance of part (a) have - how can we use the table generated by the dynamic programming algorithm to tell whether there is more than one optimal subset for the knapsack problem's instance?

  What is so special about the oop

What is so special about OOP? Why is it so widely used today? What do you gain and what do you lose when using OOP?

  Develop a context diagram and a diagram 0 dfd

Develop a context diagram and a diagram 0 DFD for TIMS. Include notes to identify any assumptions or other issues. Depending on program used, either include URL or raw file of program, PLUS a common format (jpg/pdf).

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