Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Arrays and Abstract Data Type in Data Structure (With Notes)

Rating
-
Sold
-
Pages
2
Uploaded on
01-03-2023
Written in
2022/2023

Arrays and Abstract Data Type in Data Structure (With Notes)

Institution
Course

Content preview

Arrays and Abstract Data Type in Data Structure (With
Notes)
CodeWithWahid
So I have a friend that wanted to build a PC So he approached me and asked '' Harry , can
you give me a blueprint to build PC ? '' '' So that with that blueprint I can make someone build
PC? '' '' I want to do gaming and streaming. '' So I gave him this blueprint. I told him all the
main components of a PC. And even if he makes a mistake , It wo n't be a big deal. We will
study array ADT. Array as an Abstract Data Type. Arrays as an abstract data type. In that , I
will give you MRF. Not MRF tyres, nor the bat one ; I 'll give you minimal. . . minimal Required
functionalities. And some operations , that you can define later on your own. Let us
understand this with the example of an array. Arrays can be found in a lot of programming
languages. Arrays are found in C, C++, Java and Java. In Python, they are called 'lists' and in
Java, they're called lists. There are some minimal required functionalities in arrays. For
example, Get is done , Set is done. Along with that there can be a resize functionality.

An array is a collection of elements. Accessible by an index. The memory layout of the C
programme is a code section. Inside the stack, there are local variations of a function. Inside
a function is a stack. Inside an array is the heap. The kernel is the kernel of the kernels. In
most programming languages, the index of an array starts at 0 It has a reason ; when we
start from 0 , We get a certain advantage but I wo n't go there. But, you can search on the
internet There 's a paper by jee-stars. In that they 've explained what will happen if it starts
from 1 or 0. How calculations will become easy. If you say that you do n't want 38 , you want
a greater one Then you wo n't get it. When you requested a memory till 38, then it is possible
that some other application was given some memory by the compiler. It will be doing its job
with this memory. Otherwise in the same programme It must have allocated a variable in
correspondence with that memory. So you 're saying that you want to increase it So you can
not make it larger in this array. You can increase it in the linked list, we 'll talk about that
ahead. If you skip the practice set it 'll be over in 6 hours.

An array can not be resized. Directly I can not resize it , I ca n't increase it. It wo n't get this
block ; no. It can be. resized this way. Why should we use an array ? Why did we make an
array? We made the array because Because at one point I have these 10 addresses. Get and

Written for

Institution
Course

Document information

Uploaded on
March 1, 2023
Number of pages
2
Written in
2022/2023
Type
Class notes
Professor(s)
Wahid
Contains
All classes

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
dluckybhai

Get to know the seller

Seller avatar
dluckybhai Exam Questions
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
5
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions