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

  How much does a quarter half pound of cheese weigh

if it takes a day and a half for a chicken and a half to lay an egg and a half how much does a quarter half pound of cheese weigh?

  Linear equations-linear equalities

Explain in simple terms how solving linear equations is similar and different than solving linear inequalities. Cite and explain three examples.

  What is the probability that mean annual precipitation

the annual precipitation amounts in a certain mountain range are normally distributed with a mean of 88 inches and a

  Find the unknown initial temperature

a body at an unknown temperature 'y' is placed in a room which is held in a room which is held at a constant temperature of 30'F. if after 10 minutes the temperature of the body is 0'F and after 20minutes the temperature of the body is 15'F, find ..

  At what rate is his distance from second base changing

A baseball diamond is a square 90 ft on each side. A player is running from home to first base at the rate of 25 ft/sec. At what rate is his distance from second base changing when he has run halfway to first base?

  What is the maximum monthly mortgage loan payment

A bank will only give a mortgage loan if the total amount of monthly payments for all loans, including the mortgage, is no more than 36% of the monthly gross income. What is the maximum monthly mortgage loan payment for which Shawn can be approved..

  Find the density of x and the cdf of x

The message is meant to be an array of length n, in which a symbol may be used more than once. Find the density of X and the CDF of X.

  Find the mean particulate levels in the city center

Find the mean particulate levels in the city center.

  Straight-line-double-declining balance

Cutter Enterprises purchased equipment for $72,000 on January 1, 2006. The equipment is expected to have a five-year life, with a residual value of $6,000 at the end of five years.

  Effects on the response variable

Two factors are extraneous if their effects on the response variable cannot be distinguished from one another.

  The mean bone marrow micro vessel density

At the .01 level of significance, is there sufficient evidence to conclude that the mean bone marrow micro vessel density is higher before the stem cell transplant than after the stem cell transplant?

  What is the combined capacity in cubic feet of all three

1. a local farm owner has just acquired another smaller farm with three silos for cattle feed. the shapes of the silos

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