Evaluate the prefix expression

Assignment Help Mathematics
Reference no: EM13949453

1) Let A = {1, 2, 3, 4} and R be a relation on the set A defined by:

R = {(1,1), (1,2), (1,4), (2,1), (2,2), (3,3), (4,2), (4,4)}.

Determine whether R is reflexive, irreflexive, symmetric, asymmetric, antisymmetric, or transitive. If the relation fails to have a property, give an example showing why it fails in this case.

2) Suppose an online retailer identifies each member with a 6-digit account number. Define the hashing function h, which takes the first 3 digits of an account number as 1 number and the last 3 digits as another number, adds them, and then applies the mod-61 function.

a) How many linked lists does this create?

b) Compute h(158686)

c) Compute h(328981)

3) Let A = {1, 2, 3, 6, 12, 18} and R be defined by xRy if and only if x|y.

a) Draw the digraph of R. Below are images you can use to create the diagraph. You may copy/paste the arrow and alter the directions and length as needed.

320_Draw the Hasse diagram.png

b. Draw the Hasse diagram of R. Below are images you can use to create the diagraph. You may copy/paste the images and alter the directions and length as needed.

999_Draw the Hasse diagram1.png

c. Give a subset of B of A that is linearly ordered with respect to R and contains at least three elements.

4)

a) Construct the tree of the algebraic expression:

8n - 2(m + 1)

1713_Draw the Hasse diagram2.png

b) Perform a preorder search of the tree to write this expression in prefix form.

c) Evaluate the prefix expression when m = 5 and n = 3 and list each step of the solution.

5) Use vertex A as the initial vertex and use Prim's algorithm to find a minimal spanning tree for the following diagram. You do not need to draw the tree, but do list the edges (as an ordered pair) in the order in which they are chosen.

Edges:

1809_Draw the Hasse diagram3.png

6) Use Fleury's algorithm to produce an Euler circuit for the following graph. Start at A and label the edges in the order that you add them.

376_Draw the Hasse diagram4.png

Reference no: EM13949453

Questions Cloud

Heavy positively charged nucleus surrounded by electrons : Describe the experiment that allowed rutherford to conclude that the atom consists of a relatively heavy positively charged nucleus surrounded by electrons?
Determine the torque delivered to the load : A 60-Hz, four-pole, three-phase induction motor delivers 35 kW of mechanical (output) power. At a certain operating point the machine has 4 percent slip and 87 percent efficiency. Determine the torque delivered to the load and the total electrical..
The volume of total gas produced : Pentaerythritol tetranitrate, a.k.a., PETN, is one of the most powerful explosives known. It has a density of 1.77 g/cm3. Find (1) the volume of a 227 g (about 1/2 pound) quantity of the explosive before the explosion and (2) the volume of total gas ..
In how many years will the same sum become nine times : A sum when lent at 15% p.a. simple interest for x years amounted to 18125 rs. When the same sum was lent at 20% p.a. simple interest for (x+2)years it amounted to 25000rs. Find the sum? In what time does a sum double itself at 12.5%p.a. simple intere..
Evaluate the prefix expression : Evaluate the prefix expression when m = 5 and n = 3 and list each step of the solution
Which method do you believe is more effective : Which method do you believe is more effective (written or face-to-face) and why? Please give an example to support your choice?
Calculate coefficient of correlation between these variables : Estimate the value of torque required when the diameter is 16 mm. Calculate the coefficient of correlation between these variables and comment on your prediction obtained in (c).
Input current and power factor of motor : 1. A six-pole, three-phase, 440-V, 60-Hz induction motor has the following model impedances: RS = 0.8 Q XS = 0.7 Q RR = 0.3 Q XR = 0.7 Q Xm = 35 Q Calculate the input current and power factor of the motor for a speed of 1,200 r/min.
Use quantitative methods to support evidentiary findings : Researchers prefer to use quantitative methods to support evidentiary findings. According to Creswell (2009), the purpose of a survey design is to provide numerical trends to sample a population's belief and or opinion regarding a specific study

Reviews

Write a Review

Mathematics Questions & Answers

  When constructing parallel and perpendicular lines how same

When constructing parallel and perpendicular lines, how are the steps similar

  Example of a metric space

On the other hand, give an example of a metric space in which every Cauchy sequence converges; and then prove this metric space is Cauchy sequence and also converges.

  Find the volume of water in the pool

A swimming pool is circular with a 40-ft diameter. The depth is constant along east-west lines and increases linearly from 4 ft at the south end to 5 ft at the north end. Find the volume of water in the pool. (Round the answer to the nearest whole..

  What is the minimum number of households

The histogram below represents the number of television sets per household for a sample of U.S. households. What is the minimum number of households having the same number of television sets?

  Write the resulting polynomial

Add 4x2 + 9x- 3 and x2 + x3– x4 and write the resulting polynomial in descending order.

  Resurfaced is shaped like a trapezoid

A parking area that is to be resurfaced is shaped like a trapezoid

  Find the diameter of that pie

One can of pumpkin pie mix will make a pie with a diameter of 8 in. If two cans of pie mix are used to make a larger pie of the same thickness, find the diameter of that pie. Use radical 2 is approximately 1.414.

  Examples of binary relations

Undergraduate senior level Real Analysis. Please show me formal math proofs. Give an example of a binary relation which is

  Probability - frequency of dice rolls

Probability - Frequency Of Dice Rolls, When a pair of dice is rolled, the total will range from 2 (1,1) to 12 (6,6). It is a fact that some numbers will occur more frequently than others as the dice are rolled over and over.

  How many minutes did her call last

Laura purchased a prepaid phone card for$20 . Long distance calls cost 7 cents a minute using this card. Laura used her card only once to make a long distance call. If the remaining credit on her card is$16.57 , how many minutes did her call last?

  At what times is the graph discontinuous

Sketch the graph of the inventory as a function of time t (days). At what times is the graph discontinuous?

  Derivatives and extrema

Find f'(x) using the appropriate rule and simplify to one expression with positive exponents. Find all values of x, using algebra, where f'(x)=0 (Write your answer with positive exponents)

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