Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Algoritham and maths

19/10/2020 Client: srikanthkumar Deadline: 2 Day

   


Fall 2020 CIS 606 Midterm


You have to TYPE your answers and use a tool to draw figures. Save them in a file called mid.pdf. The cover page should contain your picture, name and your grail’s login id. Use the following command on grail to submit it BEFORE noon on Oct 20 (EST):


turnin -c cis606s -p mid mid.pdf


WARNING: Finding the solutions from Internet or discussing with any other person will be considered as CHEATING.


1. Write True or False at the beginning of your answer and give an explanation for each of the following statements.


(a) ( 9 points) (True or False)


5n+5 = O(5n)


(b) ( 9 points) (True or False)


In the algorithm SELECT which uses the median of medians, the input elements are divided into groups of 5. The algorithm can still work in linear time if they are divided into groups of 9.


(c) ( 9 points) (True or False)


Finding a closest pair of points in 2 dimensions would be harder (in terms of time complexity) if the distance between 2 points (x1, y1) and (x2, y2) were defined as


|x1 − x2| + |y1 − y2|.


   


Solve the following recurrence by making a change of variables.


T (n) = 8T (√n) + 1


3. ( 15 points)


Using Figure 6.3 as a model, illustrate the operation of BUILD-MAX-HEAP on the array A = h3, 2, 15, 9, 70, 18, 5, 33, 8i.


4. ( 10 points)


Trace in detail how the OS Select(T.root, 18) operates on the following RB tree T .




Given two arrays A[1..n] and B[1..n], the elements in the array A are sorted in de- scending order and the elements in the array B are sorted in ascending order. Consider the problem of finding the median of all 2n elements in A and B.


(a) Design an algorithm with merging. What is the running time of your algorithm?


(b) Design an efficient recursive algorithm based on the prune-and-search approach.


You may use a figure to illustrate your algorithm. Give the recurrence relation for the time complexity of your algorithm. Solve your recurrence using the master theorem.


  


Input: array P [1..n] and array Q[1..n], where n is power of 2.


Output: array R[1..(2n − 1)]


Two binary operators   and ⊕ will be used for calculations. Both are associative. The operation   is distributive over ⊕ and has higher precedence than ⊕.


The operator   will be used to calculate each pair of operands P [i], 1 ≤ i ≤ n, and Q[j], 1 ≤ j ≤ n (i.e. one operand in P and the other in Q). The result of P [i]   Q[j] will be accumulated into R[i + j − 1] by using the ⊕ operation.


The following is a loop-based algorithm:


for i = 1 to n


for j = 1 to n


R[i + j − 1] = R[i + j − 1] ⊕ P [i]   Q[j]


endfor endfor


For example, given P [1..4] and Q[1..4], the output result R[1..7] will be:


R[1] = P [1]   Q[1]


R[2] = P [1]   Q[2] ⊕ P [2]   Q[1]


R[3] = P [1]   Q[3] ⊕ P [2]   Q[2] ⊕ P [3]   Q[1]


R[4] = P [1]   Q[4] ⊕ P [2]   Q[3] ⊕ P [3]   Q[2] ⊕ P [4]   Q[1] R[5] = P [2]   Q[4] ⊕ P [3]   Q[3] ⊕ P [4]   Q[2] R[6] = P [3]   Q[4] ⊕ P [4]   Q[3] R[7] = ⊕ P [4]   Q[4]


Use the Divide and Conquer approach to develop an efficient algorithm which uses fewer   operations. You may draw a figure to illustrate your idea. Give the recurrence relation for the time complexity of your algorithm. Solve your recurrence using the master theorem.


Hint: Split the array P [1..n] into two subarrays A[1..n ] and B[1..n ]. Also split the


2 2


array Q[1..n] into two subarrays C[1..n ] and D[1..n ].


2 2

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Quality Homework Helper
Top Grade Essay
Buy Coursework Help
Top Essay Tutor
Top Writing Guru
Essay Writing Help
Writer Writer Name Offer Chat
Quality Homework Helper

ONLINE

Quality Homework Helper

Hi dear, I am ready to do your homework in a reasonable price.

$112 Chat With Writer
Top Grade Essay

ONLINE

Top Grade Essay

Working on this platform from a couple of time with exposure of dynamic writing skills gathered with years experience on different other websites.

$112 Chat With Writer
Buy Coursework Help

ONLINE

Buy Coursework Help

Hi dear, I am ready to do your homework in a reasonable price.

$112 Chat With Writer
Top Essay Tutor

ONLINE

Top Essay Tutor

I have more than 12 years of experience in managing online classes, exams, and quizzes on different websites like; Connect, McGraw-Hill, and Blackboard. I always provide a guarantee to my clients for their grades.

$115 Chat With Writer
Top Writing Guru

ONLINE

Top Writing Guru

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$110 Chat With Writer
Essay Writing Help

ONLINE

Essay Writing Help

I am a qualified and experienced Writer, Researcher, Tutor, analyst and Consultant. I hold MBA (Strategic Management) (Finance and Marketing) & CPA.K (Accounting and Finance.)

$112 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Liebert intellislot web card reset - I am grateful for - Arrange the compounds in order of decreasing pka - Thesis statement for disgrace essay - Vce art past exams - The dumbest generation chapter 5 summary - Answer to essay-200 words minimum (YL) - Powerpoint title slide apa format - COLOSAL G - Process Synchronization Using Monitor and Pthreads - 10 column accounting worksheet example - The education of margot sanchez sparknotes - Wk1D1 - Hush puppies creative brief - Nyu creative writing syllabus - The therapeutic powers of play 20 core agents of change - Caroline springs library jobs - Analysis of electronic health records - Sabre red download for windows 7 - Tagline of red bull - Business its legal ethical and global environment free pdf - How to calculate bcr in excel - Fbt operating cost method calculator - Kenya obstetrical and gynaecological society scientific conference - N 3 3 and 5i are zeros f 1 104 - Theory practice gap in nursing example - Cons of constitutional monarchy - Https www youtube com watch v ymyofrec5jk - Gc 2 worksheet 9 patterson answers - Depaul university css code - Pressure point headrest soothe by apana - Deliverable 1 - Descriptive Statistics - Sap accounts payable process flow chart - Gatsby chapter 6 discussion questions - Ibm data breach calculator - Explorers or boys messing about - Define reframing in counseling - Grammar boot camp worksheets - Class Diagram and Use Case Diagram - What milestones is starbucks known for - Blood test hervey bay - Wk 7 fin article - Wildwood by junot diaz audio - How to calculate how many fte are needed - 1506 main north road salisbury sa 5108 - Unit 3 Assignment - Decision Tree for Business Expansion - Jessem rout r lift - Persuasive techniques in advertising worksheet - Andersson of abba nyt crossword - Labor Relations and Collective Bargaining - Devotion to one's country - Determinant of an orthogonal matrix - Thermoplastic composites manufacturing process - A cone shaped drinking cup is made - Pendulum and the calculation of g lab report - Boltss on a map - DB ORGANIZATION HUMAN RESOURCE - Psychological testing - Annotated Bibliography Assignment - Crocodile river story answer - Unit 2 Case Study - How to find the volume of a semicircle prism - Order of operations dice game pdf - Why is it important that statistical research follow ethical guidelines - Statistics Questions - M25 london good omens - Example of 6x6 rule powerpoint - MGT317 Week-5 Final Exam score 87% - Which capital budgeting method uses accrual accounting - Name the three subatomic particles and their charges - List of bones in the body - Psychology - Lord of the flies epilogue - Sharon kemp darts player illness - ATS Resume with Optimize Linkedin - Sir gawain and the green knight pdf norton - B4b comcast smart office - Sea ray v drive problems - Galvanic voltaic cells worksheet answers - A beautiful mind movie questions answer key - MOD 06 - 3-4 paragraph discussion due in 1 hour - What are the aspects of communication - Identify the three technologies that are reinventing the supply chain - Goddards silver dip woolworths - MK405 Unit 6 Discussion - Atomic spectroscopy lab answers - Http coolclimate berkeley edu calculator - Sphl720bk1 - Jb hi fi mobile byo plan $65 12 month - Money and materialism in a doll's house - Fte calculation based on volume - Unthinking eurocentrism multiculturalism and the media pdf - Victoria school of languages - Practical connection of legal, regulations, investigations and compliances - Disconnect and reconnect course - I thank you god for most - Clc cambridge latin course - Wk 3 paper - 3 phase 4 wire energy meter connection diagram with ct