Giter Site home page Giter Site logo

Radu Ciuca's Projects

2.1 icon 2.1

Write a Java class with a method that generates an array of 1 million random integers. Add three methods to this class 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 starting from 10 in appropriate regular steps for the algorithms and comment on the shape of the graph in relation to efficiency of each of the algorithms.

2.2 icon 2.2

Create a data file consisting of at least 100 string values. You can create the list yourself, or perhaps copy the values from a text file of some type, or you can even create the file by generating random strings. Sort the file using each of the sorting algorithms mentioned in 2.1 above. There are a number of things that can go wrong when a program accesses an external resource such as a file. E.g. file may not exit in the folder the program expects it to be, file may be in a different format etc. Your program should handle these and other exceptions to demonstrate the implementation of error handling and reporting.

3.2 icon 3.2

Palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward. Write a function that checks if a given string of one or more words is a palindrome or not. 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. Use the following palindromes (e.g. “Never odd or even”, “Hannah”, “If I had a hifi”) as well as any non-palindrome strings to check your code:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.