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

  Questions on ferris wheel

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Logistic map

This assignment has two question related to maths. Questions are related to bifurcation cascade and logistic map.

  Finding the probability of cards

This assignment has questions related to probabiltiy.

  Systems of ode

Find all the xed points, and study their stability and Draw the phase portrait of the system, as well as the graphs of the solutions in all relevant cases.

  Derive the boolean expression

Derive the Boolean Expression and construct the switching circuit for the truth table stated

  System of equations

Evaluate which equations are under-identified, just-identified, and over-identified.

  Linear programming problem

Linear programming problem consisting of only two constraints with one objective function.

  Find the natural domain

Find the natural domain of the given functions.

  Introduction to numerical methods

Compute the coecients of the polynomials using the term recurrence relation.

  Chart of the topological manifold

De?nition of smoothness of functions on a smooth manifold is chart independent and hence geometric.

  Mathematics in computing

Questions related on mathematics in computing.

  Complex problems

Complex problems

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