Compare and contrast polyas procedure for solving problems

Assignment Help Other Subject
Reference no: EM133141534

7WCM1078 Computational Algorithms and Paradigms

Assessment - Question 1

Various procedures may be followed in order to solve a problem. Two such procedures are the HTTLAP procedure and Polya's procedure.

a) Compare and contrast Polya's procedure for solving problems, with another procedure (of your own choosing), that has also been developed for solving problems. Include an explanation for each part of the Polya procedure.

The Tower of Hanoi is a game for two players. It consists of ‘n' discs of various size located on one of ‘p' posts. Each disc is of different size to each of the other discs and are initially arranged on a post with the largest disc on the bottom of the stack, with smaller discs only allowed to rest on a disc of larger size.

In this question I would like you to consider the Tower of Hanoi problem with p = 4.

b) Using the HTTLAP procedure or otherwise derive appropriate procedural algorithms, (using, if possible, an appropriate formula, or 'not using a formula') for the tower of Hanoi problem with 4 posts. Provide a final completed solution in pseudo-code.

c) Compare and contrast the approach taken above with the tower of Hanoi problem to one that would be generated in another paradigm of your own choosing. Would recursion be possible here?

Question 2

The Functional paradigm was introduced in the 1960's to address a range of different types of problem from a range of different disciplines. Two such disciplines were symbolic computation and natural language processing. Initial functional programming languages such as LISP have been described as examples of impure rather than pure functional languages.

a) Compare and contrast the pure functional paradigm to two of the following:
i. object oriented paradigm
ii. logic paradigm
iii. quantum paradigm

Following your initial observations on the two paradigms extend your discussion to include

iv. Source, domain, range and codomain. Include an explanation of the different types of relation that exist between such sets with examples for each type of relation
v. the representation of states in classical and quantum paradigms

b) Using an example of your own describe how Lisp or Haskell could be used to accomplish a task involving
i. functional composition, and
ii. recursion.

c) The Linear Search Algorithm and the Binary Search Algorithm are two examples of algorithms that can be used to find a particular value within a finite collection of numeric data. Explain what is meant by a linear search algorithm and a binary search algorithm. Establish the worst case complexity for each of these algorithms. Justify your answers.

d) Calculate McCabes cyclotomic complexity metric for the following code segments:

i. a for loop followed by a do-while loop
ii. a do-while loop containing a nested if control structure

Include appropriate flowcharts for each code segment.

Attachment:- Computational Algorithms and Paradigms.rar

Reference no: EM133141534

Questions Cloud

What is the amount of service revenue that will be reported : The company received a total of $16,500 in cash for services that were performed during 2021. What is the amount of Service Revenue that will be reported
What was the amount of dividends declared during the year : Ridge Crest Company has beginning Retained Earnings of $30,000, ending Retained Earnings of $36,800, What was the amount of dividends declared during the year
Prepare the journal entry to record pension related activity : The city of Stewart contributed $1,600,000 cash to the pension plan. Prepare the journal entry to record the pension related activity
Calculate the direct material quantity variances : Actual production was 15,000 barrels - this was 2,000 barrels less than planned. Calculate the Direct Material Quantity (Efficiency) Variances
Compare and contrast polyas procedure for solving problems : Explanation of the different types of relation that exist between such sets with examples for each type of relation - Calculate McCabes cyclotomic complexity
Calculate bodnar company breakeven revenues : Sara Oves, Bodnar's president, is very concerned about Bodnar Company's poor profitability. Calculate Bodnar Company's breakeven revenues
Describe how your algorithm would change : Describe how your algorithm would change if your solution was developed in a different paradigm to the above. Would recursion work here? Justify
What is the required rate of return of the portfolio : What is the required rate of return of the portfolio held by Bulldogs Inc. if the nominal rate of the short-term government issued security is 2.25%
Calculate McCabes cyclotomic complexity metric : Calculate McCabes cyclotomic complexity metric - Compare and contrast the approach taken above with the tower of Hanoi problem to one that would be generated

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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