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

Data structures

Rating
-
Sold
-
Pages
143
Uploaded on
13-06-2025
Written in
2024/2025

A Data Sharing Agreement (DSA) is a legally binding document that outlines the terms and conditions for sharing data between two or more parties. Here's a general outline of what a DSA document might include: *Key Components:* 1. *Purpose and Scope*: Defines the purpose of the data sharing, the scope of the agreement, and the parties involved. 2. *Data Description*: Describes the type of data being shared, including any specific formats or requirements. 3. *Roles and Responsibilities*: Outlines the responsibilities of each party in relation to the data sharing, including data protection, security, and compliance. 4. *Data Protection*: Specifies the measures to be taken to protect the data, including encryption, access controls, and data storage. 5. *Data Use and Disclosure*: Defines how the data can be used and disclosed, including any restrictions or limitations. 6. *Intellectual Property*: Addresses ownership and intellectual property rights related to the data. 7. *Termination*: Specifies the conditions under which the agreement can be terminated. 8. *Dispute Resolution*: Outlines the process for resolving disputes related to the data sharing. *Benefits:* 1. *Clear Expectations*: A DSA document helps to establish clear expectations and responsibilities between parties. 2. *Data Protection*: A DSA document ensures that data is protected and handled in accordance with relevant regulations and standards. 3. *Compliance*: A DSA document helps to ensure compliance with relevant laws and regulations, such as GDPR or HIPAA. Importance: A DSA document is essential for any organization that shares data with other parties, including businesses, research institutions, or government agencies. It helps to ensure that data is shared securely, efficiently, and in compliance with relevant regulations.

Show more Read less
Institution
Course

Content preview

UNIT I LINEAR DATA STRUCTURES

Abstract Data Types (ADTs) – List ADT – array-based implementation – linked list
implementation – – singly linked lists- circularly linked lists- doubly-linked lists – applications
of lists –Polynomial Manipulation – All operation (Insertion, Deletion, Merge, Traversal).

1. INTRODUCTION TO DATA STRUCTURES

Data structures

Data Structures is a means of storing a collection of data. It is the specification of the elements
of the structure, the relationship between them and the operations that may be performed upon
them.

Types of Data Structures

Data structures can be classified based on the organization and the operations defined on it.




Fig: 1.1 Types of Data Structures

Linear and non-linear structure: Simple data structures can be combined in various ways to
form more complex structure. There are two kinds of complex data structure. They are linear
& non-linear, depending on the complexity of the logical relationship they represent

 Linear data structure: Stacks, queues, linear linked list, arrays

 Non- linear data structure: Tree and graph tables, sets.

Linear Data Structures

All the elements form a sequence or maintain a linear ordering. Data‟s are organized in
a sequential manner.

,Non Linear Data Structures

If all the elements are organized in a distributed manner then it was termed as Non-linear data
structures

2. EXPLAIN THE ABSTRACT DATA TYPE.(5 M)

 Abstract data type (ADT) is a specification of a set of data and the set of operations
that can be performed on the data.
 Objects such as lists, sets, and graphs, along with their operations, can be viewed
as abstract data types, just as integers, real, and Booleans are data types.
 Set of operations --- each operation does a specific task.
 ADT is a small function, a subprogram, which cannot be implemented as such, as it
contains only the essential things and lacks the rest.

Operations on ADT :

1. Insertion at first, last and middle
2. Deletion at first, last and middle
3. Modifying the list,
4. Reversing the list,
5. Merging the list

Uses of ADT: -
1. It helps to efficiently develop well designed program
2. Facilitates the decomposition of the complex task of developing a software system into
a number of simpler subtasks
3. Helps to reduce the number of things the programmer has to keep in mind at any time
4. Breaking down a complex task into a number of earlier subtasks also simplifies testing
and debugging

3. EXPLAIN THE THE LIST ADT(5 M)

 List is the collection of related data items.
 Eg: Name list (collection of names)

List of ADT’s:
1. Insertion at first,middle,last
2. Deletion at first,middle,last
3. Searching
4. Reversing
5. Traversing

,Implementation of LIST ADT:
1) Array Implementation
2) Linked List Implementation(using Pointers)

4. DESCRIBE THE ARRAY IMPLEMENTATION.(10 M)

Arrays
 It is the collection of related data items, stored in a continuous way.
 The very common linear structure is array. Since arrays are usually easy to traverse,
search and sort, they are frequently used to store relatively permanent collections of data.
 An array is a list of a finite number n of homogeneous data elements (i.e., data elements
of the same type) such that:
a) The elements of the array are referenced respectively by an index consisting of n
consecutive numbers.
b) The elements of the array are stored respectively in successive memory locations.

ARRAY ADTS:

1. Creation:
Void create(int a[20], int n)
{
int i; for(i=0;i<n;i+
+)
scanf(“%d”,&a[i]);
}
Example: Let n=5
1020 1022 1024 1026 1028




2. Insertion at first:
Void ins_first(int a[ ],int x,int n)
{
int i;
for(i=n-1;i>=0;i--)
a[i+1]=a[i];
a[0]=x;
}
Let the no to be inserted be 2

, 3. Insertion at middle:
Void ins_middle(int a[ ], int num,int n,int pos)
{
int i;
for(i=n-1;i>=pos;i--)
a[i+1]=a[i];
a[pos]=num;
}
Let the no to be inserted be 6 at pos 4

4. Insertion at LAST:
Void ins_end(int a[ ],int num,int n)
{
a[n]=x;
n=n+1;
}

5. Deletion at first: Let the no to be inserted at last be 16
Void del_first(int a[ ],int n)
{
int i; n=n-1;
for(i=0;i<n;i++)
a[i]=a[i+1];

}
After deletion at the first the array looks like


6. Deletion at middle:
Void del_middle(int a[ ],int pos,int n)
{
int i; n=n-1;
for(i=pos;i<n;i++)
a[i]=a[i+1];
Afer deletio at the middle at pisitio 3
}

7. Deletion at end:
Void del_end(int a[ ],int n)
{




4

Written for

Institution
Course

Document information

Uploaded on
June 13, 2025
Number of pages
143
Written in
2024/2025
Type
Class notes
Professor(s)
Priya
Contains
All classes

Subjects

$10.39
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
tarkeshwara

Get to know the seller

Seller avatar
tarkeshwara Mks gopi Krishna
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
10 months
Number of followers
0
Documents
2
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