Recurrence for the running time of strassens algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM131877005

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

Reference no: EM131877005

Questions Cloud

Define folk theory of race and critical race theory : Define folk theory of race and racism and critical race theory and describe the differences between the two theories.
Describe the human nervous system for the body : Psychologists have described the human nervous system as the communication and control center for the body.
How are the results of the data analysis presented : Does the problem indicate a particular focus (population, variables, research method)? If so, what is the particular focus?
Describe the social and cultural conditions : Describe the social and cultural conditions that led to the rise of cognitive psychology. Argue whether cognitive psychology represents further growth.
Recurrence for the running time of strassens algorithm : Write the recurrence for the running time of Strassens algorithm and Implement a divide and conquer algorithm for the problem
How many of you know about global warming : How many of you know about global warming? Fun fact, if you type in "Global Warming" into the Google search engine you get 80,800,000 results.
Explain strengths and weaknesses of the test : Determine an attribute, skill, trait, or attitude you are interested in measuring. Develop a 10 item test measuring various aspects of the chosen topic.
What is the mentoring model at delancey : Among the 5 principles of Restorative Justice that we learned in the class, which ones are being implemented in this project and how?
Determine the cost allocation : Determine the cost allocation if $5,200,000 of the communications network costs are fixed and allocated on the basis of time on network

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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