Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment

Question 1. Write the definition of θ; then prove that θ(f(n)) = n3 when f(n) = 5n3 + 2n2 - 4. Find c0, c1, n0.

Question 2. Find θ(n) for the following recurrence for the running time:

2.1 T(n) = αT(n - 1) + 1
2.2 T(n) = 3T (n/3) + 1
2.3 T(n) = T (n/2) + 1

Question 3. In Chapter 4 of our reference book (Introduction to algorithms), read Strassen's algorithm for matrix multiplication and answer the following questions.

3.1 Write the recurrence for the running time of Strassen's algorithm and find its θ.

3.2 Use the algorithm to compute the matrix product:

(7 4) (5 3)
(1 3) (2 5)

Show your work.

Programming:

1. Implement a divide and conquer algorithm for the following problem.

You have an n × n board, where n = 2k. One of the cells is black. You should fill the board with an L shape which is a 2 × 2 tile with a missing cell without any overlaps with the black or L shapes. You are allowed to rotate the L shape 90 degree multiple times. Explain your algorithm and evaluate its time complexity.

623_figure.jpg

Input: n,a,b.
n: number of cells in rows and columns, a: X index of the black cell,
b: Y index of the black cell.

For example for the above example, input is:
4,1,2. Since the board is 4 by 4 and the black cell is located at (1,2).

Output: a sequence of a,b,d for all the L shapes in the form of a0,b0,d0; a1,b1,d1;....; ak,bk,dk.
a: X index of the yellow cell in L shape,

b: Y index of the yellow cell in L shape,

d: degree of the rotation.

For example: 0,0,270; 0,3,0; 2,1,180; 3,0,180; 3,3,90; is the output for the above example.

Both output and input are given as text files.

Attachment:- Input.rar

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92705354
  • Price:- $35

Guranteed 24 Hours Delivery, In Price:- $35

Have any Question?


Related Questions in Computer Engineering

Question suppose that have been asked to investigate

Question : Suppose that have been asked to investigate several password-protected files and other files with headers that do not match the extension. Discuss how you would proceed in your investigation of these files. Th ...

How do you calculate the number of atoms given the weight

How do you calculate the number of atoms given the weight of an element, such as nitrogen?

Bond a is a 1-year zero-coupon bond bond b is a 2-year

Bond A is a 1-year zero-coupon bond. Bond B is a 2-year zero-coupon bond. Bond C is a 2-year 10% coupon bond that pays annually. The yield to maturity (annually compounded) on bond A is 10%, and the price of bond B is $8 ...

The relations given below are part of a database schema for

The relations given below are part of a database schema for a hotel management system. Assume that these relations have been populated with suitable data as appropriate, and the underlined attribute is a primary key. Hot ...

In your opinion if the government imposes unit sales tax ie

In your opinion, if the government imposes unit sales tax (i.e. $ tax per unit sold) on a product, will the market equilibrium change? Which one, demand or supply will shift? Increase or decrease? Will new tax cause "dis ...

A street vendor is asking people to play a simple game you

A street vendor is asking people to play a simple game. You roll a pair of dice. If the sum on the dice is 10 or higher, you win $10. If you roll a pair of 1's, you win $59. Otherwise you lose $5. If the random variable ...

Can someone please show me how to do this step by step

Can someone please show me how to do this step by step please. I dont understand any of it 1.) Add a new virtual disk a) Edit VMware player settings to add a new virtual hard disk. b) Start or reboot the virtual machine ...

Simplifya factor and find the vertex form x2 6x 8b factor

Simplify a) Factor and find the vertex form x^2 +6x + 8 b) Factor the h value of of the vertex of 2x^2 - 10x - 30 c) Find the x-intercept and y-intercept of 5x - 4y=30

In 2005 team dad used a toyota truck with a system of

In 2005, Team DAD used a Toyota truck with a system of spinning lasers as its "visual" system. What advantages and or disadvantage does such a system have compared to camera-based systems?

What is the types of cost fixed variable and marginal in

What is the types of cost: fixed, variable, and marginal in economics, and methods that market power alters the relationship between a firm's costs and the price at which it sells its product?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As