Capella University Pseudocode Analyze and Synthesize Discussion

Question Description



  • Overview

    Analyze and synthesize pseudocode for an IT company.

  • This assessment is particularly important to the areas of IT and computer science, as both use a number of different programming languages to complete tasks via algorithms. You will demonstrate your ability to interpret and create algorithms and read and understand pseudocode (that is, English-like programming code).


  • Context

    The Assessment 4 Context document contains information about algorithms, including recursion, as well as pseudocode and basic programming principles.



  • Resources

    Suggested Resources

    The following optional resources are provided to support you in completing the assessment or to provide a helpful context. For additional resources, refer to the Research Resources and Supplemental Resources in the left navigation menu of your courseroom.

    • Algorithms | Transcript.
      • This presentation includes the following topics:
        • Characteristics of algorithms.
        • Notation for algorithms.
        • The Euclidean algorithm.
        • Recursive algorithms.
        • Complexity of algorithms.
    • Number Theory and Recurrence Relations | Transcript.
      • This presentation includes the following topics:
        • Number systems.
        • Hexadecimal number system.
        • Recurrence relation.
        • Fibonacci sequence.
        • Towers of Hanoi.
        • Solving recurrence relations.
    Library Resources

    The following e-book from the Capella University Library is linked directly in this course:

    The resource listed below is relevant to the topics and assessments in this course and is not required. Unless noted otherwise, this resource is available for purchase from the.

    • Johnsonbaugh, R. (2018). Discrete mathematics (8th ed.). New York, NY: Pearson.
      • The following chapters and sections are particularly useful for your work in this assessment.
        • Chapter 4, “Algorithms,” sections 4.1 through 4.3. This chapter allows you to look at examples of algorithms, analyze algorithms, and work with recursive algorithms.
        • Chapter 4, “Algorithms,” sections 4.3 and 4.4. Section 4.4 focuses on recursive algorithms.
        • Chapter 5, “Introduction to Number Theory.” This chapter focuses on divisors, representations of integers and integer algorithms, the Euclidean algorithm, and the RSA public-key cryptosystem.
        • Chapter 7, “Recurrence Relations.” This chapter focuses on solving recurrence relations and applications to the analysis of algorithms.
        • Appendix C, “Pseudocode.”
  • Assessment Instructions

    Assume that you are an IT professional working at an IT company. You have been asked to assess some snippets of code/pseudocode. Read over the pseudocode samples below and answer the corresponding questions.

    Pseudocode Sample 1 and Questions

    // Description
    // number is a positive integer with n digits, where numberi refers to the ith digit of number
    // n is the number of digits of c
    // base is a positive integer
    function conversion(number,base,n)
    value = 0;
    unit = 1;
    for i = 0 to n

    value = value + numberi * unit;
    unit = unit * base;

    end
    return value;
    Respond to the following:

    1. What does the conversion function do? Please provide a detailed response.
    2. In terms of n, how many computational steps are performed by the conversion function? Note: One computational step is considered one operation: one assignment, one comparison, et cetera. For example, the execution of a = c + d may be considered two computational steps: one addition and one assignment.
    3. What is the Big-O time complexity of the conversion function in terms of n? Justify your response.

    Pseudocode Sample 2 and Questions

    function printToScreen(n)
    for i = 1 to n
    for j = 1 to i
    print(“*”);
    end
    print(“n”);
    endRespond to the following:

    1. What does the printToScreen function do? Please provide a detailed response. Specifically, describe the pattern formed by the *’s being printed. Note that print(“*”) will print one star and print(“n”) will print a carriage return, which effectively brings the cursor to a new line.
    2. In terms of n, how many computational steps are performed by the printToScreen function? Justify your response. Note: One computational step is considered one operation: one assignment, one comparison, et cetera. For example, the execution of print(“Hello“) may be considered one computational step: one print operation.
    3. What is the Big-O (worst-case) time complexity of the printToScreen function in terms of n? Justify your response.

    Pseudocode Sample 3 and Questions

    // n is a non-negative integerfunction f(n)
    if n == 0 || n == 1
    return 1;
    else
    return n*f(n-1);Respond to the following:

    1. What does the f function do? Please provide a detailed response.
    2. In terms of n, how many computational steps are performed by the f function? Justify your response. Note: One computational step is considered one operation: one assignment, one comparison, et cetera. For example, the execution of 3*3 may be considered one computational step: one multiplication operation.
    3. What is the Big-O (worst-case) time complexity of the f function in terms of n? Justify your response.
    4. Define a recurrence relation an, which is the number of multiplications executed on the last line of the function f, “return n*f(n-1);”, for any given input n. Hint: To get started, first determine a1, a2, a3 …. From this sequence, identify the recurrence relation and remember to note the initial conditions.

    Pseudocode Synthesis

    1. Write pseudocode for a function called swapLarge. This function has an input 3 integers: x, y, and z. The algorithm will swap the values of two of these variables. Specifically, it will swap the largest value and the second largest value. For example, if x = 1, y = 2, and z = 3, then the output would be x = 1, y = 3, and z = 2.

      Algorithms Scoring Guide

      CRITERIA DISTINGUISHED
      Derive recurrence relation including initial conditions. Derives recurrence relation including initial conditions and relates derivation to algorithm time complexity analysis.

      Analyze purpose of recursive and non-recursive algorithms. . Analyzes purpose of recursive and non-recursive algorithms and evaluates its efficiency.

      Analyze the time complexity of recursive and non-recursive algorithms via computational steps and Big-O. . Analyzes the time complexity of recursive and non-recursive algorithms via computational steps and Big-O and clearly derives Big-O as an upper-bound of the expression of computational steps.

      Synthesize pseudocode as instructed. Synthesizes pseudocode as instructed and integrates best coding practices and efficient design schemes.
Get 20% Discount on This Paper
Pages (550 words)
Approximate price: -

Try it now!

Get 20% Discount on This Paper

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Ace Writing Center has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.

Essays

Essay Writing Services

At Ace Writing Center, Nowadays, students normally have extremely busy schedules. You will note that some of them have to take on some evening or weekend jobs in order to get some income that can help them to sustain in college or in the university. This can deny them a chance to write all the essays given. Others usually get bombarded with a lot of work by their lecturers. This can still delay such students from working on all their essays. However, some of them usually try to work on all these essays but end up delivering their work late. This can prevent them from graduating since most lecturers are strict on deadlines. If you want to write a business essay, the wise way is to hire an outstanding essay writing service like us, so that you can get the best results. If you are keen, you will note that many companies usually overcharge their customers. Some of them are there only to make money. And in reality, they really don’t care to build a long term commitment with students. You should not choose such companies. You should take your time and choose a reliable company to work with. Ace Writing Center is the ultimate solution for you. We have been offering our writing service for more than 7 years. This is a clear indication that you will get quality essay writing service. We have a wide range of writers who can work on any business essay that you might have. We believe in doing extensive research so that we can provide quality work to all our clients. .

Admissions

Admission and Business Papers

Have you ever had to write an admission essay for college? The majority of students face the same issues when applying to a university or college and many in such situations decide they need professional help to cope with this matter. They get in a situation when the deadline keeps coming closer but lack motivation to start because they are just not sure if their writing skills are strong enough. We have a solution for you! Ace Writing Center is the best admission essay writing service with a large professional team and years of experience in providing high-quality papers to students of all levels and faculties. The mission of our team is to help students make their dreams of entering a good college come true and that’s what we offer!.

Editing

Editing and Proofreading

Sometimes all the words for your paper just flow out of your mind and into your fingers. You type quickly at your keyboard and there they are, your beautiful words right there on the screen. But you have no idea how to polish it up. You may be wishing there was a paper writing service that offered this type of writing service. Look no more! Here at Ace Writing Center, we offer you an editing and proofreading option that you can't find anywhere else..

Coursework

College Essay Writing

In case you are familiar Ace Writing Center, you know the way to distinguish a better company from a cheap one exactly. First of all, poor service website does not have a sufficient support. We think support team is an essential part of success; it has to answer all clients’ questions and be a connecting link between clients and their writers. On our web-service you will get answers about anything you need and your writer will receive all your instructions, assignments and requirements exactly and swiftly. A writing service that we run has got a flexible pricing system that will save you from senseless wastes and many bonus systems that let you sparing money for something important for you.