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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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