Algorithms Answers

Questions answered by Experts: 652

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

Using the hardware given to the right, show the addition of two numbers in steps as it would take place.

A = 18.625, B = 2.125

Show the steps in detail. Also show the contents of different registers (R1, .. R8) and control bits (C1, .. C9). It is noted that Control bits (C1, ..

C9) could be either 1 or 0 and you can assign the logic levels for particular operations.

You can present your answer preferably in a table. (If you wish, you can prepare your own Table to present your answer in better way)

Time Step-1 operation R1 R2 .. .. C1 C2 … Comments, if any

Time Step-2


Create a Pseudocode that asks for the user's name, gender, and year of birth. Based on the computed age from the user's entered birth year and the assigned variable current year (2020), it will determine if the user is a qualified or not qualified voter. It will also ask whether the user wants to attempt filling out the form again.
It is late at night, and you decide to get a glass of milk before bed. Try to write pseudocode describing the process of going to the kitchen and getting the milk. (9 pts)
b. Draw a flowchart to illustrate the above program. (8pts)
Describe what is a variable and how it is used in a program.
A) It is late at night and you decide to get a glass of milk before bed. Try to write a pseudocode describing the process of going to the kitchen and getting the milk.

B) Draw a flowchart to illustrate the above program.

C) Define an algorithm of the above.


 1.     Distinguish between Management Information System and Executive Information System.

2.     Clearly distinguish between System owners and System users.

 


CS304

1.     Describe the four main elements of a computer system.

2.     Distinguish between two main categories of processor registers; and give examples to illustrate your answer.

 


a) How many number of rules can be made from the dataset which is given in Table 3?
b) Identify those item sets from which rules can be made. Also define the criteria of selection
c) Calculate the Support value of {Ketchup and Soda} and find the confidence value of all rules which can be possible by this item set.

Table 3.
Transaction ID Items
1 Ketchup, Hamburgers, Soda
2 Cereal, Milk, Diapers, Bread
3 Hot dogs, ketchup, Soda, Milk
4 Greeting card, Cake, Soda
5 Greeting Card, Cake, Milk, Cereal

Consider the following data:


Objective function to maximize: 300 X + 700 Y


Subject to Constraints:


150 X + 100 Y <= 2800

24 X <= 400

15Y <= 60


Find an optimal solution using:


Excel solver.

Corner point solution method.


Has to be solved using excel.


Let A, B, C, D, E, F, G, H be eight data items with the following assigned weights:

 

Data item: A B C D E F G H

Weight: 20 7 11 17 5 10 24 6

Construct Binary tree using Huffman Algorithm also find the path length of the tree.


LATEST TUTORIALS
APPROVED BY CLIENTS