What strings can be constructed using this derivation tree

Assignment Help Algebra
Reference no: EM131028438

1. A grammar that has no restrictions on production is called a:

A) phrase-structure grammar.

B) context-sensitive grammar.

C) context-free grammar.

D) regular grammar.

2. A Karnaugh map for 6 variables will have __________ squares.

A) 16

B) 32

C) 64

D) 128

3. A Turing machine exists with tape symbols 0, 1, and B, that takes a bit string as input and replaces all 0s with 1s; it does not change any of the 1s. Pick the Turing machine from the following:

A) (s0, 0, s0, 1, R), (s0, 1, s1, 1, R), (s1, 1, s1, 1, R), (s1, 1, s0, 1, R)

B) (s0, 0, s1, 1, R), (s1, 0, s0, 1, R)

C) (s0, 0, s0, 1, R), (s0, 1, s0, 1, R)

D) None of the above

4. Bubble sort has worst case complexity of:

A) O(n log2 n)

B) O(n2)

C) O(n)

D) O(n!)

5.Consider the following derivation tree:

What strings can be constructed using this derivation tree?

A) A large bunny hops wildly

B) A large bunny hops

C) A bunny hops wildly

D) A bunny hops

E) All of the above

6.Every full binary tree with 61 vertices has __________ leaves.

A) 30

B) 31

C) 60

D) 61

E) none of the above

7. How many different Boolean functions of degree 7 are there?

A) 27

B) 128

C) 228

D) 2128

8. T is a tree with 999 vertices, therefore T has __________ edges.

A) 998

B) 999

C) 1000

D) none of the above

9. The best comparison-based sorting algorithms for a list of n items have complexity of:

A) O(n log2 n)

B) O(n2)

C) O(n)

D) O(n!)

10. The idempotent laws of Boolean algebra state that:

A) x + x = 2x

B) x * x = x2

C) x + x = x

D) x * x = 2x

11. The identity, x + yz = (x + y)(x + z) is known as:

A) De Morgan's law.

B) distributive law.

C) associative law.

D) commutative law.

12. The pairs of numbers define the input and output to and from each state. The machine starts in state s0. If the input value to s0 is a 0, then 1 is output and the machine transitions to state s1; if the input is a 1, then 0 is output and the machine transitions to state s3. If the machine is in state s1 and receives a 0 as input, it outputs a 1 and stays in state s1; if it receives a 1, it outputs a 1 and transitions to s2. The remainder of the machine diagram may be read in the same fashion.

The machine is started and receives the bit string 0000. What does it output?

A) 1111

B) 1000

C) 1010

D) 0000

13. The pairs of numbers define the input and output to and from each state. The machine starts in state s0. If the input value to s0 is a 0, then 1 is output and the machine transitions to state s1; if the input is a 1, then 0 is output and the machine transitions to state s3. If the machine is in state s1 and receives a 0 as input, it outputs a 1 and stays in state s1; if it receives a 1, it outputs a 1 and transitions to s2. The remainder of the machine diagram may be read in the same fashion.

The machine is started and receives the bit string 101010. What does it output?

A) 010101

B) 011011

C) 001001

D) 000101

14. The study of languages and grammars using discrete math focuses on:

A) syntactics.

B) semantics.

C) natural language.

D) none of the above.

15. The sum-of-products expansion of F(x,y) = 1 is:

A)

B)

C)

D) none of the above

16. The two outputs of a half adder are the sum, s and carry, c. What is the output for input values of 1 and 1?

A) s=1, c=1

B) s=1, c=0

C) s=0, c=1

D) s=0, c=0

17. There are __________ non-isomorphic trees with 4 vertices.

A) 0

B) 1

C) 2

D) 3

E) 4

18. What is the language recognized by the following nondeterministic finite-state machine?

A) { 0, 1 }

B) { 0, 00, 10, 01, 11 }

C) { 0, 00, 10 }

D) { 0, 10, 01 }

19. What is the value of the following prefix notation arithmetic expression: - 5 / * 6 2 - 5 3

A) -1

B) 0

C) 1

D) none of the above

Reference no: EM131028438

Questions Cloud

Risks for running marathons and for driving : The New York Times ran a story headlined "Study Shows Marathons Aren't Likely To KillYou," claiming that the risk of dying on a marathon is twice as high if you drive it than if you run it. The underlying study (Redelmeier and Greenwald 2007) esti..
Eyewitness evidence unreliable : Discuss briefly. Is eyewitness evidence unreliable? What's missing from the story?
What measures would you use in a business like amazon : What measures would you use in a business like Amazon.com to evaluate the company's performance? The supply chain?
Diagnostic performance of digital versus : Pisano et al (2005) studied the "diagnostic performance of digital versus film mammography for breast cancer screening." About 40,000 women participated in the trial; each subject was screened by both methods.
What strings can be constructed using this derivation tree : A Turing machine exists with tape symbols 0, 1, and B, that takes a bit string as input and replaces all 0s with 1s; it does not change any of the 1s.
Characteristics of leasing in client sever architecture : Characteristics of leasing in client sever architecture
Description of organizations diversity initiatives : Conducting the audit. This involves actually conducting the audit (gathering your secondary research and conducting the primary research such as interviews or surveys)
What is meant by the terms acidic oxide and basic oxide : What is meant by the terms acidic oxide and basic oxide? How can we predict whether an oxide will be acidic or basic based on its composition?
Efficacy of treatment : CT (computerized tomography) scans can detect lung cancer very early, while the disease is still localized and treatable by a surgeon-although the efficacy of treatment is unclear.

Reviews

Write a Review

Algebra Questions & Answers

  How many of each type of seat are there on the plane

An airplane has a total of 152 seats. The number of coach-class seats is 5 more than six times the number of first-class seats. How many of each type of seat are there on the plane?

  Finding two consecutive even integers

Find two consecutive even integers such that the smaller added to two time the larger gives a sum of 28.

  Whether the fist system of equations is ill-conditioned

Comparing the 2 solution can you determine whether the fist system of equations is ill-conditioned or not?? Explain why it is ill-conditioned??

  Assume youve the following recursion formula a1 1 a2 2

1. suppose you have the following recursion formula a1 1 a2 2 and an an - 1 an - 2for integers n ge 3. how would you

  What will the price of gasoline be in the year 2018

Assuming this growth trend continues, what will the price of gasoline be in the year 2018? How did you arrive at your answer?

  Solving equation by arithmetic operations

Solving equation by arithmetic operations.

  Determine the indefinite integral using the formulas from

find the indefinite integral using the formulas from theorem 5.20. remember to use ln u where appropriate. dx x 9

  What elements of r has a multiplicative inverse in r

What is the zero of R? That is, what set Z has the property that XZ=ZX=X?

  Evaluate each of the given function for the value specified

Evaluate each function for the value specified. Write an inequality that shows the various number of hours you can work at each job.

  Multiplying and dividing rational expressions

Please solve in lowest terms with parenthesis if necessary:

  Write the fraction in terms of the lcm

Write the fraction in terms of the LCM

  She bought 1 pound of tomatoes and wanted to spend the

patricia had less than 9 to spend when she went to the grocery store. she bought 1 pound of tomatoes and wanted to

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