Lecture 6
Lecture 6
Parallel Algorithms
8
Dr. Muhammad Imran, ICS/IT, FMCS
Link List
A linked list is a data structure having zero or more nodes
connected by pointers.
Nodes may or may not occupy consecutive memory
locations.
Each node has two or three parts – one data part that
stores the data and the other two are link fields that store
the address of the previous or next node.
The first node’s address is stored in an external pointer
called head. The last node, known as tail, generally does not
contain any address. There are three types of linked lists:
9
Dr. Muhammad Imran, ICS/IT, FMCS
Linked Lists (1)
10
Dr. Muhammad Imran, ICS/IT, FMCS
Arrays
An array is a data structure where we can
store similar types of data.
13
Dr. Muhammad Imran, ICS/IT, FMCS
Hypercube Network (1)
14
Dr. Muhammad Imran, ICS/IT, FMCS
Multiprocessor Models
a) A local memory machine
model consists of a set of n
processors each with its own
local memory all attached to a
common communication
network.
b) A modular memory machine
model consists of m memory
modules and n processors all
attached to a common network.
c) A Parallel Random Access
Machine (PRAM) Model
consists of a set of n processors
all connected to a common
shared memory