Fundamentals of Data Structures and Algorithms

Fundamentals of Data Structures and Algorithms
Slide Note
Embed
Share

Explore the core concepts of data structures and algorithms, including mathematical notations, functions, summation symbols, and the dynamic nature of data. Understand the principles behind record, array, and linked data structures, as well as the volume of data involved and storage requirements. Gain insights into manipulating data structures programmatically and the ways data is utilized.

  • Data Structures
  • Algorithms
  • Math Notation
  • Data Manipulation
  • Programming

Uploaded on Feb 26, 2025 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Course Developer/Writer: J. Ikuomola A.

  2. Dr. A.T. Akinwale

  3. Department of Computer Science College of Natural Science University of Agriculture Abeokuta, Ogun State, Nigeria

  4. UNIT 1: MATHEMATICAL NOTATION AND FUNCTION

  5. Summation Symbol (Sum)

  6. Called Summation (Sigma)

  7. Consider a sequence of a1, a2, a3, Then the sums

  8. a1 + a2 + a3 + ... + an and am1+ am+1 + + an

  9. will be denoted respectively by

  10. Example:

  11. manipulated by the program. Thus the record and array data structures are based on computing the addresses of data items with arithmetic operations; while the linked data structures are based on storing addresses of data items within the structure itself. Many data structures use both principles.

  12. Volume of data involved

  13. Frequency and ways in which data will be used.

  14. Dynamic and static nature of the data.

  15. Amount of storage required by the data structure.

  16. Time to retrieve an element.

  17. Ease of programming.

  18. Classification of Data Structure

  19. upon machine instructions. Examples are integer and character. Non- primitive data structures are derived data structure from the primitive data structures. Examples are structure, union and array.

  20. homogenous data structures all the elements will be of the same type. Example is array. In heterogeneous data structure the elements are of different types. Example: structure

  21. such data structures are known as static data structures. If the allocation of memory is at run-time then such data structures are known as Dynamic data structures. Functions such as malloc, calloc, etc. are used for run-time memory allocation.

  22. data structure is said to be linear if its elements form a sequence or a linear list. Example, array. A non-linear data structure does not maintain any linear relationship between the elements. Example: tree.

  23. Linear structure can be represented in a memory in 2 basic ways:

  24. To have the linear relationship between the element represented by mean of sequential memory location. These linear structures are called ARRAY.

  25. To have the linear relationship between the elements represented by means of points or links. These linear structures are called LINKLIST.

  26. Data Structure Operation

  27. The following operations are normally performs on any linear structure, whether is an array or a linked list.

  28. Transversal (Traversing)

  29. Search (Searching)

  30. Inserting

  31. Deleting

  32. Sorting

  33. Merging

  34. exactly only, so that certain items in the record may be processed. This accessing and processing is sometimes called visiting the record.

  35. location of the record with a given key value or finding the location of all records which satisfy one or more conditions.

  36. Inserting: adding a new record to the structure

  37. Deleting: removing an element from the list of records from the structure.

  38. alphabetically according to some NAME key or in numerical order according to some NUMBER key such as social security number, account number, matric number, etc.)

  39. Merging: combining the records in two different sorted file into a single sorted file.

  40. Characteristics of Data Structures

  41. Data Structure Advantages Disadvantages inserts Array Quick

  42. Fast access if index know Slow search

  43. Slow deletes

  44. Ordered Array Faster Fixed size search than unsorted array Slow inserts

Related


More Related Content