Podcast
Questions and Answers
Design and develop an efficient algorithm to find the list of prime numbers in the range 501 to 2000. What is the complexity of this algorithm?
Design and develop an efficient algorithm to find the list of prime numbers in the range 501 to 2000. What is the complexity of this algorithm?
An efficient algorithm would be the Sieve of Eratosthenes, adapted for a range. The complexity is approximately O(n log log n) where n is the size of the range.
Differentiate between Cubic-time and Factorial-time algorithms. Give example of one algorithm each for these two running times.
Differentiate between Cubic-time and Factorial-time algorithms. Give example of one algorithm each for these two running times.
Cubic-time algorithm: O(n^3), e.g., matrix multiplication. Factorial-time algorithm: O(n!), e.g., generating all permutations of a set.
Write an algorithm to multiply two square matrices of order n*n. Also explain the time complexity of this algorithm.
Write an algorithm to multiply two square matrices of order n*n. Also explain the time complexity of this algorithm.
Algorithm: Standard matrix multiplication using nested loops. Time complexity: O(n^3).
What are asymptotic bounds for analysis of efficiency of algorithms? Why are asymptotic bounds used? What are their shortcomings? Explain the Big O and Big Ω notation with the help of a diagram. Find the Big O-notation and Ω-notation for the function: $f(n)= 100n^4 +1000n^3 +100000$
What are asymptotic bounds for analysis of efficiency of algorithms? Why are asymptotic bounds used? What are their shortcomings? Explain the Big O and Big Ω notation with the help of a diagram. Find the Big O-notation and Ω-notation for the function: $f(n)= 100n^4 +1000n^3 +100000$
Write and explain the Left to Right binary exponentiation algorithm. Demonstrate the use of this algorithm to compute the value of 3^29 (Show the steps of computation). Explain the worst-case complexity of this algorithm.
Write and explain the Left to Right binary exponentiation algorithm. Demonstrate the use of this algorithm to compute the value of 3^29 (Show the steps of computation). Explain the worst-case complexity of this algorithm.
Write and explain the Bubble sort algorithm. Discuss its best and worst-case time complexity.
Write and explain the Bubble sort algorithm. Discuss its best and worst-case time complexity.
What are the uses of recurrence relations? Solve the following recurrence relations using the Master's method a. $T(n) = 4T(\frac{n}{4}) + n^1$ b. $T(n) = 4T(\frac{n}{3}) + n^1$
What are the uses of recurrence relations? Solve the following recurrence relations using the Master's method a. $T(n) = 4T(\frac{n}{4}) + n^1$ b. $T(n) = 4T(\frac{n}{3}) + n^1$
What is an Optimisation Problem? Explain with the help of an example. When would you use a Greedy Approach to solve optimisation problem? Formulate the Task Scheduling Problem as an optimisation problem and write a greedy algorithm to solve this problem. Also, solve the following fractional Knapsack problem using greedy approach. Show all the steps. Suppose there is a knapsack of capacity 20 Kg and the following 6 items are to packed in it. The weight and profit of the items are as under: (P1, P2,..., P6) = (30,16,18,20,10, 7) (W1, W2,..., W6) = (5, 4, 6, 4, 5, 7) Select a subset of the items that maximises the profit while keeping the total weight below or equal to the given capacity.
What is an Optimisation Problem? Explain with the help of an example. When would you use a Greedy Approach to solve optimisation problem? Formulate the Task Scheduling Problem as an optimisation problem and write a greedy algorithm to solve this problem. Also, solve the following fractional Knapsack problem using greedy approach. Show all the steps. Suppose there is a knapsack of capacity 20 Kg and the following 6 items are to packed in it. The weight and profit of the items are as under: (P1, P2,..., P6) = (30,16,18,20,10, 7) (W1, W2,..., W6) = (5, 4, 6, 4, 5, 7) Select a subset of the items that maximises the profit while keeping the total weight below or equal to the given capacity.
Assuming that data to be transmitted consists of only characters 'a' to 'g', design the Huffman code for the following frequencies of character data. Show all the steps of building a huffman tree. Also, show how a coded sequence using Huffman code can be decoded. a:5, b:25, c:10, d:15, e:8, f:7, g:30
Assuming that data to be transmitted consists of only characters 'a' to 'g', design the Huffman code for the following frequencies of character data. Show all the steps of building a huffman tree. Also, show how a coded sequence using Huffman code can be decoded. a:5, b:25, c:10, d:15, e:8, f:7, g:30
Explain the Merge procedure of the Merge Sort algorithm. Demonstrate the use of recursive Merge sort algorithm for sorting the following data of size 8: [19, 18, 16, 12, 11, 10, 9, 8]. Compute the complexity of Merge Sort algorithm.
Explain the Merge procedure of the Merge Sort algorithm. Demonstrate the use of recursive Merge sort algorithm for sorting the following data of size 8: [19, 18, 16, 12, 11, 10, 9, 8]. Compute the complexity of Merge Sort algorithm.
Explain the divide and conquer approach of multiplying two large integers. Compute the time complexity of this approach. Also, explain the binary search algorithm and find its time complexity.
Explain the divide and conquer approach of multiplying two large integers. Compute the time complexity of this approach. Also, explain the binary search algorithm and find its time complexity.
Explain the Topological sorting with the help of an example. Also, explain the algorithm of finding strongly connected components in a directed Graph.
Explain the Topological sorting with the help of an example. Also, explain the algorithm of finding strongly connected components in a directed Graph.
Write the Prim's algorithm to find the minimum cost spanning tree of a graph. Also, find the time complexity of Prim's algorithm. Demonstrate the use of Kruskal's algorithm and Prim's algorithm to find the minimum cost spanning tree for the Graph given in Figure 1. Show all the steps.
Write the Prim's algorithm to find the minimum cost spanning tree of a graph. Also, find the time complexity of Prim's algorithm. Demonstrate the use of Kruskal's algorithm and Prim's algorithm to find the minimum cost spanning tree for the Graph given in Figure 1. Show all the steps.
Write the Dijkstra's shortest path algorithm. Also, find the time complexity of this shortest path algorithm. Find the shortest paths from the vertex 'A' using Dijkstra's shortest path algorithm for the graph given in Figure 1. Show all the steps of computation.
Write the Dijkstra's shortest path algorithm. Also, find the time complexity of this shortest path algorithm. Find the shortest paths from the vertex 'A' using Dijkstra's shortest path algorithm for the graph given in Figure 1. Show all the steps of computation.
Explain the algorithm to find the optimal Binary Search Tree. Demonstrate this algorithm to find the Optimal Binary Search Tree for the following probability data (where $p_i$ represents the probability that the search will be for the key node $k_i$, whereas $q_i$ represents that the search is for dummy node $d_i$. Make suitable assumptions, if any)
Explain the algorithm to find the optimal Binary Search Tree. Demonstrate this algorithm to find the Optimal Binary Search Tree for the following probability data (where $p_i$ represents the probability that the search will be for the key node $k_i$, whereas $q_i$ represents that the search is for dummy node $d_i$. Make suitable assumptions, if any)
Given the following sequence of chain multiplication of the matrices. Find the optimal way of multiplying these matrices:
- Matrix A1: 10 × 15
- Matrix A2: 15 × 5
- Matrix A3: 5 × 20
- Matrix A4: 20 × 10
Given the following sequence of chain multiplication of the matrices. Find the optimal way of multiplying these matrices:
- Matrix A1: 10 × 15
- Matrix A2: 15 × 5
- Matrix A3: 5 × 20
- Matrix A4: 20 × 10
Explain the Rabin Karp algorithm for string matching with the help of an example. Find the time complexity of this algorithm.
Explain the Rabin Karp algorithm for string matching with the help of an example. Find the time complexity of this algorithm.
Explain the term Decision problem with the help of an example. Define the following problems and identify if they are decision problem or optimisation problem? Give reasons in support of your answer.
(i) Travelling Salesman Problem
(ii) Graph Colouring Problem
(iii) 0-1 Knapsack Problem
Explain the term Decision problem with the help of an example. Define the following problems and identify if they are decision problem or optimisation problem? Give reasons in support of your answer. (i) Travelling Salesman Problem (ii) Graph Colouring Problem (iii) 0-1 Knapsack Problem
What are P and NP class of Problems? Explain each class with the help of at least two examples.
What are P and NP class of Problems? Explain each class with the help of at least two examples.
Define the NP-Hard and NP-Complete problem. How are they different from each other. Explain the use of polynomial time reduction with the help of an example.
Define the NP-Hard and NP-Complete problem. How are they different from each other. Explain the use of polynomial time reduction with the help of an example.
Define the following Problems:
(i) SAT Problem
(ii) Clique problem
(iii) Hamiltonian Cycle Problem
(iv) Subset Sum Problem
Define the following Problems: (i) SAT Problem (ii) Clique problem (iii) Hamiltonian Cycle Problem (iv) Subset Sum Problem
Flashcards
Prime Number Algorithm
Prime Number Algorithm
Finding prime numbers within a range using an algorithm and determining the algorithm's complexity.
Cubic-time vs. Factorial-time
Cubic-time vs. Factorial-time
Algorithms with time complexities that are cubic (n^3) and factorial (n!). Cubic is polynomial, Factorial is exponential.
Binary Exponentiation Algorithm
Binary Exponentiation Algorithm
Algorithm to exponentiate a number using the binary representation of the exponent. It reduces computations.
Bubble Sort Algorithm
Bubble Sort Algorithm
Signup and view all the flashcards
Recurrence Relations
Recurrence Relations
Signup and view all the flashcards
Greedy Approach
Greedy Approach
Signup and view all the flashcards
Huffman Coding
Huffman Coding
Signup and view all the flashcards
Merge Sort Algorithm
Merge Sort Algorithm
Signup and view all the flashcards
Topological Sorting
Topological Sorting
Signup and view all the flashcards
Prim's Algorithm
Prim's Algorithm
Signup and view all the flashcards
Dijkstra's Algorithm
Dijkstra's Algorithm
Signup and view all the flashcards
Optimal Binary Search Tree
Optimal Binary Search Tree
Signup and view all the flashcards
Rabin-Karp Algorithm
Rabin-Karp Algorithm
Signup and view all the flashcards
Decision Problem
Decision Problem
Signup and view all the flashcards
P Class Problems
P Class Problems
Signup and view all the flashcards
Denial of Service (DoS) Attack
Denial of Service (DoS) Attack
Signup and view all the flashcards
Steganography
Steganography
Signup and view all the flashcards
Security Audit
Security Audit
Signup and view all the flashcards
Cyber-squatting
Cyber-squatting
Signup and view all the flashcards
CIA Triad
CIA Triad
Signup and view all the flashcards
Study Notes
- These notes pertain to the assignments for the MCA_NEW (Master of Computer Applications) 2-year program, Semester-I.
- The assignments are for the January-June 2025 and July-December 2025 sessions.
- The courses covered are MCS-211, MCS-212, MCS-213, MCS-214, MCS-215, MCSL-216, and MCSL-217.
Key Dates and Submission Guidelines
- Assignments should be submitted to the Coordinator of the Study Centre on or before the due date.
- Assignment submission before the due date is mandatory to be eligible for the Term End Examinations. Refer to the MCA (2Yrs) Programme Guide for details.
- For lab courses, meeting minimum attendance requirements alongside assignment submission by the due date is essential to appear for the Term End Practical Examination. Refer to the MCA (2yrs) Programme Guide for details.
- Viva voce is compulsory; assignments are considered incomplete and will be marked zero if the viva voce is not attended.
- The submission deadline for the January-June 2025 session is April 30th, 2025.
- The submission deadline for the July-December 2025 session is October 31st, 2025.
Course-wise Assignment Details
MCS-211: Design and Analysis of Algorithms
- The assignment consists of four questions totaling 80 marks, with the remaining 20 marks allocated for viva voce.
- Students may include illustrations and diagrams to enhance their explanations.
MCS-212: Discrete Mathematics
- The assignment consists of 20 questions, each worth 4 marks, totaling 80 marks. The remaining 20 marks are for viva voce.
- Students may include illustrations and diagrams to enhance their explanations.
MCS-213: Software Engineering
- The assignment consists of one question totaling 80 marks, with the remaining 20 marks allocated for viva voce.
- Students may include illustrations and diagrams to enhance their explanations.
- Weightage of the assignment is 40%.
MCS-214: Professional Skills and Ethics
- The assignment has eight questions. All questions must be answered. Illustrations and diagrams may be used to enhance the explanations. Weightage of the assignment is 30%.
MCS-215: Security and Cyber Laws
- The assignment has six questions. All questions must be answered. Illustrations and diagrams may be used to enhance the explanations.
MCSL-216: DAA and Web Design Lab
- The assignment is divided into two sections. All questions in both sections must be answered. Each section is worth 20 marks.
- Lab Records will carry 40 marks (20 marks for each section).
- The remaining 20 marks are for viva voce.
- The program must be executed, and the program logic, sample input, and output must be submitted with the necessary documentation. Assumptions can be made where necessary.
MCSL-217: Software Engineering Lab
- This assignment has one question for 40 marks. 40 marks are for Lab Records and 20 marks are for viva voce.
- Weightage of the assignment is 40%.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.