Lecture1 DS and Algorithm(2).pptx - Data Structure Algorithm DESHINTA ARROVA DEWI What Are Data Structures 1 and Algorithms Good For By real-world data

# Lecture1 DS and Algorithm(2).pptx - Data Structure...

• 29

This preview shows page 1 - 8 out of 29 pages.

Data Structure & Algorithm DESHINTA ARROVA DEWI
What Are Data Structures and Algorithms Good For? 1. Real-world data storage 2. Programmer’s tools 3. Modeling Real-World Modeling Some data structures directly model real-world situations. The most important data structure of this type is the graph. You can use graphs to represent airline routes between cities or connections in an electric circuit or tasks in a project. Other data structures, such as stacks and queues, may also be used in simulations. A queue, for example, can model customers waiting in line at a bank or cars waiting at a toll booth. Programmer’s Tools: Not all data storage structures are used to store real-world data. Typically, real-world data is accessed more or less directly by a program’s user. Some data storage structures, however, are not meant to be accessed by the user, but by the program itself. A programmer uses such structures as tools to facilitate some other operation. Stacks, queues, and priority queues are often used in this way. By real-world data, mean data that describes physical entities external to the computer. As some examples, a personnel record describes an actual human being, an inventory record describes an existing car part or grocery item, and a financial transaction record describes, an actual check written to pay the electric bill.

#### You've reached the end of your free preview.

Want to read all 29 pages?

• Fall '19

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern