The program that runs the game involves testing

Assignment Help Mathematics
Reference no: EM13304396

Set Theory
Look up a roulette wheel diagram. The following sets are defined:

  • A = the set of red numbers
  • B = the set of black numbers
  • C = the set of green numbers
  • D = the set of even numbers
  • E = the set of odd numbers
  • F = {1,2,3,4,5,6,7,8,9,10,11,12}

From these, determine each of the following:

  • A∪B
  • A∩D
  • B∩C
  • C∪E
  • B∩F
  • E∩F

Part II: Relations, Functions, and Sequences
The implementation of the program that runs the game involves testing. One of the necessary tests is to see if the simulated spins are random. Create an n-ary relation, in table form, that depicts possible results of 10 trials of the game. Include the following results of the game:

  • Number
  • Color
  • Odd or even (note: 0 and 00 are considered neither even nor odd.)

Also include a primary key. What is the value of n in this n-ary relation?
Part III: Graphs and Trees
Create a tree that models the following scenario. A player decides to play a maximum of 4 times, betting on red each time. The player will quit after losing twice. In the tree, any possible last plays will be an ending point of the tree. Branches of the tree should indicate the winning or losing, and how that affects whether a new play is made.
Part IV: Automata Theory, Grammars and Languages (There are 2 questions for this part)
(1) A gate with three rotating arms at waist height is used to control access to a subway in New York city. Initially, the arms of the gate are locked preventing customers from passing through. Unlocking the arms requires depositing a token in a slot, which allows the arms to rotate to a complete turn which allows one customer to push through and enter. Once the customer passes through the arms are then locked again until another customer deposits another token in the slot.
The gate has two states: LOCKED and UNLOCKED. It also has two inputs: TOKEN and PUSH. When the gate is locked, pushing the arm of the gate has no effect regardless of how many times it is pushed. The input TOKEN changes the state from LOCKED to UNLOCKED. When the gate is in the UNLOCKED state, inserting additional tokens has no effect on the state. But when in the UNLOCKED state, a PUSH input changes the state to LOCKED.
(i). Provide a transition table showing each state, the inputs, and the resulting new states for each input
(ii). Represent your transition table into a digraph (transition diagram)
(2) Here is a context-free grammar that can be used to generate algebraic expressions via the arithmetic operators (addition, subtraction, multiplication, and division), in the variables p, q, and r. The letter E stands for expression:
Rule 1: E -› p
Rule 2: E -› q
Rule 3: E -› r
Rule 4: E -› E + E
Rule 5: E -› E - E
Rule 6: E -› E X E
Rule 7: E -› E/E
Rule 8: E -›(E)
(i). Use the above grammar to derive the string given by the mathematical expression E = (p + q) X p - r X p/(q + q)
(ii). Provide a parse tree for this derivation

 

Reference no: EM13304396

Questions Cloud

Private developers or government officials : Problems sometimes arise between applied anthropologists and private developers or government officials. Many agencies want to implement changes immediately and without consideration for the people who will be impacted
Based on incorrect statistics, research design : Discuss another questionable pharmaceutical, medical or public health claim you believe is questionable or one that was later found to be based on incorrect statistics, research design etc.
Vulnerabilities, and controls as applied to other kinds : 3. (TCO A) While our focus in the course is on threats to information systems, this question focuses on the concept of threats, vulnerabilities, and controls as applied to other kinds of systems.
Health conditions or medical procedures : There are health conditions and medical procedures for which racial/ethnic disparities have been documented. identify three (3) specific health conditions or medical procedures.
The program that runs the game involves testing : The implementation of the program that runs the game involves testing. One of the necessary tests is to see if the simulated spins are random. Create an n-ary relation, in table form, that depicts possible results of 10 trials of the game. Incl..
The integer part and y1 is the fractional part. : Approximate the value of log2 9. Explain how to figure out 3
The discussion and in the assignment tool : Post your response to the following questions in both the discussion and in the assignment tool. Name your assignment in the following manner: LastName_3A
Registers 0, 1,and 2 when the machine halts : What bit patterns will be in registers 0, 1,and 2 when the machine halts?
Lettuce is used with several types of hamburgers : Q8. Farmer Bob, Farmer Jane and Farmer Jose run a cow farming co-op. For every cow they keep the cow's name, age (or date of birth), breed and numbered plastic ear tag. The each of the three farmers own many cows and share some of the cows wit..

Reviews

Write a Review

Mathematics Questions & Answers

  Find the 99% confidence interval of the mean number

A random sample of 48 days taken at a large hospital shows that an average of 38 patients were treated in the emergency room (ER) per day. The standard deviation of the population is 4.

  Sketch the parallelogram spanned

sketch the parallelogram spanned by and in the xy plane and compute its area.

  Computing ruler function

Prove that f(x) is continuous at every irrational point and discontinuous at every rational point. Show that f is integrable on [0,1]

  How old is gar5y and how old is his sister

Gary's age is an even number less than 14. He is one-half his sister's age. His sister's age is a number between 16 and 24. how old is Gar5y and how old is his sister?

  In what year will the box-office receipts be $14 billion

According to the data from the U.S. Department of Commerce, movie-theater box-office receipts (in millions of dollars) in year x can be approximated by y= 535.43x+5362.21, where x=0 corresponds to 1995. Assume that this equation remains valid unti..

  What is the shortest length of fence

A rancher wants to fence in an area of 2000000 square feet in a rectangular field and then divide it in half with a fence down the middle parallel to one side. What is the shortest length of fence that the rancher can use?

  Explain derrick is thinking of a negative integer

Derrick is thinking of a negative integer. When he multiplies the interger by itself and then adds three times the interger to the products

  What is the probability that this person used steroids

A particular test for the presence of steroids is to be used after a professional track meet. If steroids are present, the test will accurately indicate this 95% of the time.

  How much will he have to deposit into the account

How much will he have to deposit into the account each month in order to reach this target after 25 years? (Give your answer, in dollars, correct to the nearest cent.)

  Prepare the necessary correcting entries

Prepare the necessary correcting entries, assuming that Longfellow uses a calendar-year basis - Year-end wages payable of $3,400 were not recorded because the bookkeeper thought that "they were immaterial."

  What is the perimeter of the rectangle

A rectangle is inscribed in a circle of radius 10m. The are of the rectangle is 160m^2. What is the perimeter of the rectangle?

  Which scale will allow her to make the tallest model

A building is 172 feet tall. For a class project, Kari is to make a scale model of the building to place in the front hall display case. The display case is 22 inches tall. Which scale will allow her to make the tallest model that will fit in the ..

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