Chapter 13 Assignment: DSA & Image Processing
Basic Level (10 Questions)
- Implement a function to reverse a linked list.
- Write a program to find the maximum element in an array.
- Explain the difference between a stack and a queue.
- Write a Python function to check if a string is a palindrome.
- Use OpenCV to load and display an image.
- Write a function to perform insertion sort on a list.
- Explain the concept of recursion with an example.
- Use OpenCV to convert an image to grayscale.
- Write code to implement a queue using two stacks.
- Detect edges in an image using OpenCV's Canny edge detector.
Intermediate Level (10 Questions)
- Implement a binary search algorithm.
- Write a function to detect and remove loops in a linked list.
- Explain time and space complexity of merge sort.
- Use OpenCV to resize and crop an image.
- Implement a balanced binary tree insertion.
- Perform image thresholding using OpenCV.
- Write a program to implement a stack using a linked list.
- Apply Gaussian blur to an image using OpenCV.
- Implement depth-first search (DFS) on a graph.
- Detect and count contours in an image using OpenCV.
Advanced Level (10 Questions)
- Implement Dijkstra's shortest path algorithm.
- Optimize matrix multiplication using Strassen's algorithm.
- Apply image segmentation using OpenCV and explain the method.
- Write code to perform object detection with OpenCV's Haar cascades.
- Implement a trie data structure and its search operation.
- Use OpenCV to perform perspective transform on an image.
- Write a program for topological sorting of a directed acyclic graph (DAG).
- Implement a neural style transfer on an image (conceptual or code outline).
- Implement A* search algorithm for pathfinding.
- Explain how to use OpenCV with deep learning models for image classification.