Discrete Mathematics Answers

Questions: 3 903

Answers by our Experts: 3 464

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

1.    Suppose V = {S, A, a, b}, T = {a, b), S is the start symbol with productions S "\\to" bS, S aA, A aS, A bA, A a, S b. Find a derivation of each of the following.

 

a)   bbabbab

(3 Marks)

b)   bbbaab

(3 Marks)



1.    Draw graph models, stating the type of graph used, to represent airline routes where every day there are four flights from Boston to Newark, two flights from Newark to Boston, three flights from Newark to Miami, two flights from Miami to Newark, one flight from Newark to Detroit, two flights from Detroit to Newark, three flights from Newark to Washington, two flights from Washington to Newark, and one flight from Washington to Miami, with

a)   an edge between vertices representing cities for each flight that operates between them (in either direction), plus a loop for a special sightseeing trip that takes off and lands in Miami

(5 Marks)

b)   an edge for each flight from a vertex representing a city where the flight begins to the vertex representing the city where the flight ends

(5 Marks)


1.    a) Recursively define a0 = 1, a1 = 3, a2 = 5 and an = 3an-2 + 2an-3 for n ³ 3. Calculate an for n = 3,4,5,6

(4 Marks)

 

b) Find f(2), f(3), f(4) and f(5) for the following recursive functions.

                 f(0) = 1

f(1) = 2

f(k) = (f(k -1))2 - f(k -2) + k2

(4 Marks)

 



Use Huffman coding to encode these symbols with given frequencies:

a: 0.20, b: 0.10, c: 0.15, d: 0.25, e: 0.30.

What is the average number of bits required to encode a character?

(12 Marks)



Write an algorithm to finds the largest of the number a, b and c.


Suppose that a statement of the form ∀xP(x) is false. How can this be proved?



Translate in two ways each of these statements into logical expressions using predicates, quantifiers, and logical connectives. First, let the domain consist of the students in your class and second, let it consist of all people.



a) Someone in your class can speak Hindi.



b) Everyone in your class is friendly.



c) There is a person in your class who was not born in California.



d) A student in your class has been in a movie.



e) No student in your class has taken a course in logic programming.

Construct a combinatorial circuit using inverters, OR gates, and AND gates that produces the output

((¬p ∨¬r) ∧¬q) ∨ (¬p ∧ (q ∨ r)) from input bits p, q, and r.


SHOW THAT |A`n B`|=|U|-|A|-|B|+|A n B|


Prove that for every positive integer ‘n’ : 1𝑋2𝑋3 + 2𝑋3𝑋4 + ⋯ + 𝑛(𝑛 + 1)(𝑛 + 2) =


𝑛(𝑛+1)(𝑛+2)(𝑛+3)


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS