MCIS 5313 Data Structures and Algorithms Assignment

Assignment Help Data Structure & Algorithms
Reference no: EM133079210

MCIS 5313 Data Structures and Algorithms - Southern Arkansas University

Part a

Implement the three algorithms presented in the first class on slide 18 of the file Wk1_Ch04_the_efficiency_of_algorithms.pptx as 3 methods:

methodA, methodB, methodC
There you have the algorithm A, B and C. You will run the three implementations of the algorithms with imputs and do the computation but it does not need to print to the screen the actual sum (for the last value it could exceed the maximum value stored into a long); it should print on the screen the time taken for the running of the algorithm :

1,000,000
1,000,000,000
1,000,000,000,000,000,000

To print the time you should use something like
long startTime = System.currentTimeMillis(); methodA(1000000); long endTime = System.currentTimeMillis(); System.out.println("That method A for 1,000,000 took " + (endTime - startTime) + " milliseconds");

Your submission for part a should be the java file/files for solving the problem, an actual list of the running times for all the 3*3 possibilities (3 algorithm*3 imputs each)

Part b.

Implement a STACK of floats as discussed in the second week of the class (for example WK2_b_Ch06_Stack_Implementations.pptx WK2_b_Ch06_Stack_Implementations.pptx - Alternative Formats ) as a linked list and as an array.

You should ask the user what operation to do (Push/Pop/Peek/Clear/etc) and if needed the parameter needed then perform that operation.
Your submission for part b should be the java file/files for solving the problem.

Part c.
compare the following pairs of functions and say whether f(n) is O (g(n)) for each of the following:

pair 1: f(n)=100,000,000     g(n)=1
pair 2: f(n)=100,000,000     g(n)=n
pair 3: f(n)=100,000,000     g(n)=n2
pair 4: f(n)=n                    g(n)=100,000,000
pair 5: f(n)=50 n                g(n)=51 n
pair 6: f(n)=50 n                g(n)=log(n)
pair 7: f(n)=n log(n)           g(n)=n2
pair 8: f(n)=n2 log(n)          g(n)=n3
pair 9: f(n)=                      g(n)=log(n)
pair 10: f(n)=n2 log2(n)      g(n)=n3

Your submission for part c should be a sequence of 10 False/True with the following meaning: if the 5th response is True it would mean that for the pair 5 f(n) is O(g(n)), on the other hand if 5th response is False thenitwpuld mean that for the pair 5 f(n) is NOT O(g(n)).

Attachment:- Data Structures and Algorithms.rar

Reference no: EM133079210

Questions Cloud

Why knowing the status of the economy is important : Explain why knowing the status of the economy is important in making financial decisions?
Assassination of ninoy aquino : The assassination of Ninoy Aquino is an important historical event that fueled peoples anger and condemnation of the dictator Ferdinand Magellan
Relationship between the different product curves : In terms of the above statement, examine the relationship between the different product curves?
Explain the career ready citizens : You will chose one of the Objectives from the following list of five Objective 1: Career Ready Citizens
MCIS 5313 Data Structures and Algorithms Assignment : MCIS 5313 Data Structures and Algorithms Assignment Help and Solution, Southern Arkansas University - Assessment Writing Service
Graph natalia demand curve under assumption of no insurance : An important distinction in health insurance is between the list price (PLP) and out-of-pocket price (P) of a medical good or service.
Understand the behavior of prices and quantities in market : How can we use the Supply and Demand Model in real life to understand the behavior of Prices and Quantities in the Market?
How a company could implement factors : Specificity in evaluation criteria. Give examples of how a company could implement these factors.
What is the probability that no automobiles arrive : Automobiles arrive at the Elkhart exit of the Indiana Toll Road at the rate of two per minute. The distribution of arrivals approximates a Poisson distribution.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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