DSA1 - Introduction - JVM
DSA1 - Introduction - JVM
🠶 As applications are getting complex and data rich, there are three common problems
that applications face now-a-days.
🠶 Data search – As the data grows, the search will become slower. Consider an inventory of 1
million items of a store. If the application need to search an item, it has to search an item in 1
million items every time slowing down the search.
🠶 Processor speed – Processor speed although very high, falls limited if the data grows to
billion records.
🠶 Multiple Requests – As thousands of users can search data simultaneously on a web server,
even the fast server fails while searching the data.
🠶 To solve the above-mentioned problems, data structures come to rescue. Data can be
organized in a data structure in such a way that all items may not be required to be
searched, and the required data can be searched almost instantly.
Classification of data structures
🠶 Classic data structure:
🠶 Linear data structure:
🠶 Arrays
🠶 Linked list
🠶 Stack
🠶 Queues
Step Start
Categories of Algorithms
🠶 From data structures point of view, following are some important
categories of algorithms:
🠶 Examples:
🠶 Receipes
🠶 Sorting files/papers
🠶 Assignment:
🠶 Write down at least THREE algorithms you interact with everyday and present
it.