Data Structures & Algorithms
Discussion
Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.
No questions yet — be the first to ask.
Need a paper or stuck on a question? Ask here — students reply and you get an email.
Ask about a paper-
BS ZOOLOGY first semester Animal diversity ZOOL 101 - university of Punjab 2025
0 replies Reply → -
Literary criticism
1 reply Reply → -
this paper consists of 60 marks but now we have 35 marks paper.
1 reply Reply → -
Can you please tell me more past papers please because my exams are starting from next week
1 reply Reply → -
Did you provide the past papers of the science of society uos?
1 reply Reply →
More Data Structures & Algorithms papers
See all
Data Structures & Algorithms BS 4 Semester/Term PU — University of the Punjab 2023
Uploaded 22 hours ago · by Nargis
Download ↓
Data Structures & Algorithms BS 3 Semester/Term UOS — University of Sargodha 2025
Uploaded 22 hours ago · by Nargis
Download ↓
Data Structures & Algorithms B.Tech in Information Technology 3 Semester/Term 2022
Uploaded 1 day ago · by Muskan
Download ↓
Data Structures & Algorithms Msc IT 3 Semester/Term UOS — University of Sargodha 2017
Uploaded 1 day ago · by Muskan
Download ↓
Data Structures & Algorithms 2 Semester/Term 2021
Uploaded 1 day ago · by Muskan
Download ↓
Data Structures & Algorithms BSSE/BSIT UOS — University of Sargodha
Uploaded 3 years ago
Download ↓
Paper text
Part-III (Subjective)
QUESTION # 3 [10 marks]
Convert following In-fix expression to Post-fix expression. Evaluate both In-fix and Post-fix
expression to compare results?
(3 * (6/3))+ (8/ (6-4))
QUESTION # 4 [10 marks]
Write a C++ function bool isMaxHeap (int A[], int size) to determine whether the array A is a
Max Heap or not. This function should return true if the array A is a Max Heap and it should
return false otherwise. You can assume that the indices of the array start at 1 (instead of 0).
QUESTION # 5 [10 marks]
Write a C++ function Node * middleLinkedList(Node *head) to find the middle of a linked
list. This function receives the head of linked list as parameter and then after finding returns the
address of middle node.
Good Luck