100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
DataStructures $8.09   Add to cart

Presentation

DataStructures

 0 view  0 purchase
  • Course
  • Institution

This is the presentation about DataStructure which gives introduction to datastructure which also includes arrays,stack and queue concept

Preview 2 out of 6  pages

  • November 7, 2024
  • 6
  • 2024/2025
  • Presentation
  • Unknown
avatar-seller
DATASTRUCTURE
What is Data Structure?

A data structure is a storage that is used to store and organize data. It is a way of arranging data on a
computer so that it can be accessed and updated efficiently.




Linear Data Structure: Data structure in which data elements are arranged sequentially or linearly,
where each element is attached to its previous and next adjacent elements, is called a linear data
structure.

Example: Array, Stack, Queue, Linked List, etc.

Static Data Structure: Static data structure has a fixed memory size. It is easier to access the elements in
a static data structure.

Example: array.

Dynamic Data Structure: In dynamic data structure, the size is not fixed. It can be randomly updated
during the runtime which may be considered efficient concerning the memory (space) complexity of the
code.

Example: Queue, Stack, etc.

Non-Linear Data Structure: Data structures where data elements are not placed sequentially or linearly
are called non-linear data structures. In a non-linear data structure, we can’t traverse all the elements in
a single run only.

Examples: Trees and Graphs.

, ARRAYS
Arrays are defined as the collection of similar types of data items stored at contiguous memory
locations. It is one of the simplest data structures where each data element can be randomly accessed by
using its index number.



Representation of Array:




•Index starts with 0.

•The array's length is 10, which means we can store 10 elements.

•Each element in the array can be accessed via its index.




▪︎0 (zero-based indexing): ▪︎The first element of the array will be arr[0].

▪︎1 (one-based indexing): The first element of the array will be arr[1].

▪︎n (n - based indexing): The first element of the array can reside at any random index number.



In the above image, we have shown the memory allocation of an array arr of size 5.
The array follows a 0-based indexing approach. The base address of the array is 100
bytes. It is the address of arr[0]. Here, the size of the data type used is 4 bytes;
therefore, each element will take 4 bytes in the memory.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller ranjanamuthukumar. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.09. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67096 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.09
  • (0)
  Add to cart