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
Exam (elaborations)

Data Structures & Algorithm

Rating
-
Sold
-
Pages
52
Grade
A
Uploaded on
19-07-2022
Written in
2018/2019

What are Data structures and algorithms and how to implement them using appropriate tools and techniques.

Module
BTECH

Content preview

UNIT NO. & TITLE: Unit No.19 Data Structures & Algorithms


QUALIFICATION: BTEC Level 5 HND Computing


YEAR: 2019-2020


PREPARED BY: Siddhesh Raje


REPORT


SUBMITTED ON:




1

, INDEX
Sr Topic Page
No. No.
1. LO1: Examine abstract data types, concrete data
structures and algorithms.
P1: Create a design specification for data structures 3
explaining the valid operations that can be carried out on
structures.
P2: Determine the operations of memory stack and how it 7
used to implement function calls in a computer.
M1: Illustrate, with an example, a concrete data structure 12
for a First in First out (FIFO) queue.
M2: Compare the performance of two sorting algorithms. 16
2. LO2: Specify abstract data types and algorithms in a
formal notation.
P3: Using an imperative definition, specify the abstract 22
data type for a software stack.
M3: Examine the advantages of encapsulation and 24
information hiding when using an ADT.
3. LO3: Implement complex ADT data structure and
algorithms.
P4: Implement a complex ADT and algorithm in an 28
executable programming language to solve a well-defined
problem.
P5: Implement error handling and report test results. 33
M4: Demonstrate how the implementation of 36
ADT/algorithm solves a well-defined problem.
4. LO4: Assess the effectiveness of data structure and
algorithms.
P6: Discuss how asymptotic analysis can be used to assess 40
the effectiveness of an algorithm.
P7: Determine two ways in which the efficiency of an 43
algorithm can be measured, illustrating your answer with
an example.
M5: Interpret what a trade-off is when specifying an ADT 49
using an example to support.
5. Reference 52




2

,LO1: Examine abstract data types, concrete data structures and algorithms.


P1: Create a design specification for data structures explaining the valid
operations that can be carried out on structures.


Operation that can be carried out on the structured are as follows:


What is Array: An array is a collection of items stored at contiguous
memory locations. We can say these arrays has adjacent memory locations to
store values. Since array provides a convenient structed for representing data.
Accessing each value of array, we need to access with their index number, in
array the index number start with 0 till the nth number.
Syntax for declaring array are:
data_type array_name [array_size];


What is Stack: Stack is an abstract data types with a predefined capacity.
Stack allows adding and removing elements in a particular order. Every time an
element is added, it goes on the top of the stack and the only elements that can
be removed is the element that is at the top of the stack we can say just like a
pile of object.




Stack is used for three primary operation:
push(): Pushing an element on the stack which is shown in the above image

3

, pop(): Removing an element from the stack which is shown in the above
image.
peek(): This method is used to retrieve the first element of the stack or we can
say the element which is present at the top of the stack. The element retrieved
does not get deleted or removed form the stack


Syntax for declaring array are:
Stackname.push() { \\syntax for push\\
}
Stackname.pop () { \\syntax for pop\\
}
What are Queues: Queue is an abstract data structure we can say somewhat
similar to stacks. In this the first element is inserted from one end called the
REAR and the removal of existing element takes place from the other end qw
called FRONT
This makes queue as FIFO (First in First Out) data structure, which means that
element inserted first will be removed first.




Enqueue(): Operation for adding an element into queue which is shown in the
above image
Dequeue(): Operation for removing an element from queue which is shown in
the above image


Syntax for declaring array are:


4

Document information

Uploaded on
July 19, 2022
Number of pages
52
Written in
2018/2019
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

£8.14
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
sidx

Also available in package deal

Thumbnail
Package deal
Northumbria university Level 4-5
-
12 2022
£ 97.73 More info

Get to know the seller

Seller avatar
sidx University of Central Lancashire (South West)
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
0
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions