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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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