Home / Uncategorized / Boolean expression

Boolean expression

Complete the following questions 1-14:
1. Simplify the following Boolean expression: AB(A + B)(C + C)

2. Design the combinatorial circuit for: (p’ *r) + q

3. Design the combinatorial circuit for:

4. Complete the truth table of the following Boolean expression:

5. Prove or disprove that the following 2 expressions are equivalent. Use either the related laws for your proof, or complete the two truth tables:
o (A + C)(AD + AD’) + AC + C
o A + C

6. The following is a message coded in ASCII using one byte per character and then represented in hexadecimal notation. What is the message?
o 4469736372657465204D617468656D617469637320697320434F4F4C21

7. Convert each of the following signed binary byte representations to its equivalent base-ten representation. What would each byte represent in Binary Coded Decimal? Show your work step by step.
o 00010001
o 01011100
o 1111010
What is the signed binary sum of 1011100 and 1110101 in decimal? Show all of your work.
8. Convert each of the following base-ten representations to its equivalent two’s complement in 7 bits. Show all of your work.
o 12
o -2
o -8
o 0
Define the highest and lowest integer that can be represented in this 7-bit two’s complement representation.
9. What bit patterns are represented by the following hexadecimal notations? Show all of your work.
o 9A88
o 4AF6
o DA
What is the hexadecimal sum of 9A88 and 4AF6 in hexadecimal and decimal? Show all of your work for all problems
10. Consider the following graph:

o Complete this table by finding the degree of each vertex, and identify whether it is even or odd:
Vertex Degree Even/Odd
A
B
C
D
E
F
G
H
b. What is the order of the graph?
c. Construct the 10 x 10 adjacency matrix for the graph.
11. The graph below illustrates a switching network. The weights represent the delay times, in nanoseconds, travelled by a data packet between destinations, represented by the vertices.

d. Complete the following table by finding the shortest distance and the path for that distance from vertex A to the other vertices:
Vertex Shortest Distance from A Path from A
B
C
D
E
F
G
H
I
b. What is the shortest distance between A and J and the path for that distance?
12. The following graph represents a portion of the subway system of a city. The vertices on the graph correspond to subway stations, and the edges correspond to the rails. Your job is to write a program for a cleaning car to efficiently clean this portion of the subway system.

c. Using Euler’s theorem, explain why it is possible to pass through all of the stations by traversing every rail only once.
d. Using Fleury’s algorithm, provide an optimal path to clean all the rails by passing through them only once.
e. Is it possible to find an optimal path described in question 3-b that starts on any station? Explain your answer.
f. Is it possible to find an optimal path described in question 3-b that starts and ends at the same station? Explain why or why not.
13. A network engineer lives in City A, and his job is to inspect his company’s servers in various cities. The graph below shows the cost (in U.S. dollars) of travelling between each city that he has to visit.

o Find a Hamiltonian path in the graph.
o Find a Hamiltonian circuit that will allow the engineer to inspect all of the servers. How much will the cost be for his trips?
o Is there another Hamiltonian circuit that will allow the engineer to inspect all of the servers other than your answer in question 4-b? If so, calculate the cost.
14. Consider the following binary tree:

o What is the height of the tree?
o What is the height of vertex H?
o Write the preorder traversal representation of the tree.
o Write the array representation of the tree by completing the following table:

Vertex Left Child Right Child
A
B
C
D
E
G
H
I
J
K
L
M
N
O
P
Q
R
S
T

Leave a Reply

WPMessenger