Practice Assignment – 3
Algorithms and Problem-Solving
Techademy
CONTENTS
1 Duration .......................................................................................................................................... 2
2 Problem Statements ....................................................................................................................... 2
2.1 Task 1: Pseudocode and Flowchart for Sorting Algorithm...................................................... 2
2.2 Task 2: Recursive Function and Efficiency Analysis ................................................................ 2
1
1 DURATION
2 Hours
2 PROBLEM STATEMENTS
2.1 Task 1: Pseudocode and Flowchart for Sorting Algorithm
Write pseudocode and create a flowchart for a bubble sort algorithm. Provide a brief
explanation of how the algorithm works and a simple array of integers to demonstrate a
dry run of your algorithm.
2.2 Task 2: Recursive Function and Efficiency Analysis
Write a recursive function pseudocode and calculate the nth Fibonacci number and use
Big O notation to analyze its efficiency. Compare this with an iterative approach and
discuss the pros and cons in terms of space and time complexity.