Design pseudo-code and flow charts and then write a program

Assignment Help Computer Engineering
Reference no: EM132337076

Data Structure and Algorithms

Assignment Scenario

This coursework is aimed at testing the students understanding of data structures and algorithms. Several problems with practical examples are given for each task which the learner must answer fully to demonstrate their grasp of the subject.

Where applicable, each student is expected to implement the solution in C# and include the source code in a printed report. The student will demonstrate a working program in class for oral examination. Microsoft Visual C# 2010 Express or later will be used to develop the program.

LO1: Understand Data Structures and Algorithms

1. Discuss abstract data types such as int, double, float, bool and show your understanding of the relationship between these data types and a computer memory.

2. Discuss the different types of data structures below and show appropriate practical application by giving an example, produce design specification for data structures explaining the valid operations that can be carried out on the structures.

a. Array
b. Array list
c. Linked list
d. Stack
e. Queue
f. Tree
g. Strings

3. Design pseudo-code and flow charts and then write a program in C# that generates an array of 1,000 random integers. Add three methods for bubble sort, insertion sort and quick sort to use on this array. Time each algorithm and compare the times. Draw a graph of time versus size of the array by varying the elements of the array from 10 to a 1000 in steps of 50 for the algorithms and comment of the  shape of the graph in relation to efficiency of each of the algorithms.

4. Design pseudo-code and flow charts to demonstrate different numerical algorithms over the integers, including EUCLID, FIBONACCI and SIEVE OF ERATOSTHENES. You should include recursion where appropriate.

LO 2: Implement Data Structures

1. Implement Stack and Queue data structures in C# using both arrays and arrayList. In both cases implement methods to add and subtract elements as well as counting and clearing the data structure.

2. By selecting an appropriate data structure for the problem, design and implement a C# class that allows a teacher to track the grades in a single course. Include methods that calculate the average grade, the highest grade, and the lowest grade. Write a program to test your class implementation. Your design should include Pseudo-code.

3. Write an class with methods of GenerateRadomArray() to generate an array of random 100 elements in the range of 100 to 1000 and search methods: SequentialSearch() and BinarySearch() . Add a new private Integer data member named compCount that is initialized to 0.

In each of the search algorithms, add a line of code right after the critical comparison is made that increments compCount by 1. Run both methods, searching for the same number, say 230, with each method. Compare the values of compCount after running both methods. What is the value of compCount for each method? Which method makes the fewest comparisons?

LO 3: Understand how Strings are Structured and Processed

1. Given the string “Understand how strings are structured and processed” as an input, write a C# class with the following methods to:

a. Determine the position of any character in a string.

b. Extract any word from the given string.

c. Remove all spaces from the string.

d. Order the letters in the given string alphabetically.

2. Write a function that converts a phrase into pig Latin. A word is converted to pig Latin by removing the first character of the word, placing it at the back of the word, and adding the characters “ay” to the word. For example, “hello world” in pig Latin is “ellohay orldway.” Your function can assume that each word consists of at least two letters and that each word is separated by one space, with no punctuation marks.

1.1 produce design specification for data structures explaining the valid operations that can be carried out on the structures

1.2 explain the operation and performance of sorting and search algorithms

1.3 explain the operation of recursive algorithms and identify situations when recursion is used

2.1 implement data structures in an executable programming language in the context of well-defined problems

2.2 implement opportunities for error handling and reporting

2.3 test results to enable comparison with expected results

3.1 explain common string operations and their practical applications

3.2 demonstrate the outcome of string operations in specified algorithms.

Reference no: EM132337076

Questions Cloud

How could review be written via twitter or instagram : ow could a review be written via Twitter or Instagram? What is this exhibition saying about design? Did the curation of these objects produce a critique?
Consider a market where supply and demand : Consider a market where supply and demand are given by
Propose a solution to a public health problem : Propose a solution to a public health problem (such as obesity prevention and control, environmental health issues, or infectious diseases) at the local.
Relationship between population increases and climate change : What is the relationship between population increases and climate change? Do you think fertility control is an effective strategy to halt climate change?
Design pseudo-code and flow charts and then write a program : BTEC HND in Computing and Systems Development-ICON College of Technology and Management-Design pseudo-code and flow charts and then write a program.
Current cybersecurity solutions leave wide gap in coverage : Current cybersecurity solutions leave a wide gap in coverage," says Doug Clare, vice president for cyber security solutions at analytics software company FICO.
List the factors affecting demand and supply from the case : 1. Give examples from the case to explain concept of scarcity, trade off, opportunity cost.
What kinds of economic challenges do the emissions pose : What kinds of economic challenges do these emissions pose to the people of the developing world? (Note that this question does not ask about conditions in the.
How much principal have you paid over the first 6 ?years : The loan is amortized over 25 years. How much principal have you paid over the first 6 ?years? How much principal have you paid over the first 6 ?years?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create troubleshooting guide of ping failures

Create a 2- to 3-page troubleshooting guide based on this table of ping failures. For each state combination, list the steps you would take.

  Explain a control object

express Control Object Properties. Why do we use them?

  Describe in precise terms

Describe in PRECISE terms (in terms of the contents of the packets that are sent) how the server (point B) is able to detect that the client is fake.

  What are the limitations of synthetic benchmarks

What are the limitations of synthetic benchmarks such as Whetstone and Dhrystone? Do you think that the concept of a synthetic benchmark could be extended to overcome these limitations? Explain your answer.

  Describe how a universal turing machine could be used

Describe how a universal Turing machine could be used in the proof that SA is recursively enumerable.

  Simulate trials of the monty hall three-door problem

Write a function in your favorite language that simulates trials of the Monty Hall Three-Door problem.

  Write a short c program along with a design tool

You are to write a short C program along with a design tool that will load an array with values, then search for a value using a linear search.

  Store the updated prices in the second column of the array

Write the program so that it asks the user for a dollar amount by which each price should be increased.

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

  Controlling congestion in error-free virtual circuit subnet.

Consider the following method for congestion control in the error-free virtual circuit subnet. A router may only transmit ACK for a received packet if it knows packet transmission along with the virtual circuit through subsequent routers is succes..

  Creating a program that creates a single tips object

Creating a program that creates a single Tips object

  Discuss the control signals arc associated with a cpu

The following control signals arc associated with a CPU in a microcontroller. MEMRQ: asserted when a memory operation is ongoing IORQ.

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