Posts

DATA STRUCTURES - 23CS52 LAB EXTERNAL EXAMINATION JUNE 2024

DATA STRUCTURES LAB-23CS52 1. A) Write a program to implement the Searching Techniques – Linear & Binary Search.     B) Develop a program to reverse a linked list iteratively and recursively. 2. A) Write a program to implement the circular queues with possible operations.     B)Write a program to Implement a stack or queue to compare and check for symmetry of the given string. 3. A) Write a program to Implement a double-ended queue (deque) with essential operations.     B)Write a program to check for balanced parentheses using a stack. 4. A) Write a program to implement Sorting Techniques – Selection Sort.     B) Implementing a BST using a Linked List and performing the insertion and deletion of an element . 5. A) Write a program to Implement a circular linked list and perform insertion, deletion, and traversal.     B)Write a program to evaluate a postfix expression using a stack. 6. A) Write a program to implement Sorting Techniques Insertion Sort.     B)Write a program to Use a s

COMPUTER PROGRAMMING LAB EXTERNAL EXAMINATION

                                                    COMPUTER PROGRAMMING LAB EXTERNAL EXAMINATION                                                                                 (09-02-2024) 1)Write C Programs for the following problems. i) Write a C program to implement realloc() ii)  Write a C function to transpose of a matrix 2)Write C Programs for the following problems. i) Write a C program to find the sum of a 1D array using malloc() ii)  Read student name and marks from the command line and display the student details along with the total 3)Write C Programs for the following problems. i) Concatenate two strings without built-in functions ii ) Linear search implementation 4)Write C Programs for the following problems. i) Reverse a string using built-in and without built-in string functions ii) Sort array elements using bubble sort 5)Write C Programs for the following problems. i) Binary search implementation ii) Multiplication two matrices 6)Write C Programs for the following pro

BDA Lab Internal (April - 2023)

  SET - I : a) Implementation of basic Word Count Map Reduce program b) Create sample HIVE UDF c) Sqoop import operation SET - II : a) Implementation of Matrix Multiplication with Hadoop Map Reduce b) Create Internal Table and perform DML operations c) Sqoop eval operation SET - III : a) Implementation of Weather mining by taking weather data set using Map Reduce b)  Create External Table and perform DDL operations c) Sqoop export operation

Weather Dataset Mining

import java.io.IOException; import java.util.Iterator; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; import org.apache.hadoop.mapreduce.lib.output.TextOutputFormat; import org.apache.hadoop.mapreduce.lib.input.TextInputFormat; import org.apache.hadoop.mapreduce.Job ; import org.apache.hadoop.mapreduce.Mapper; import org.apache.hadoop.mapreduce.Reducer; import org.apache.hadoop.conf.Configuration; public class MyMaxMin { public static class MaxTemperatureMapper extends Mapper<LongWritable, Text, Text, Text> { public static final int MISSING =9999; public void map(LongWritable arg0 , Text Value , Context context ) throws IOException, InterruptedException { String line = Value .toString(); if (!( line .length() == 0)) { Strin

OOPS(20CS57) LAB EXTERNAL (2022-23)

SET-1 1. Develop a java program to implement mouse events like mouse pressed, mouse released, and mouse moved by means of adapter classes. 2.  Develop a java program to print the collection data by using the following ways i) for loop ii) for-each loop iii) Iterator iv) ListIterator SET-2 1.  Five bikers compete in a race such that they drive at a constant speed, which may or may not be the same as the other. To qualify for the race, the speed of a racer must be more than the average speed of all five racers. Take as input the speed of each racer and print back the speed of qualifying racers. 2.  Develop a java program to illustrate the concept of inter-thread communication. SET-3 1.  Write a JAVA program to implement the Rhombus pattern reading the limit from the user. 2.  Develop a java program to create an interface named Vehicle which contains two abstract methods (Specifications (), Display ()). Provide two classes named Two-wheeler, Four-wheelers that is implemented by that i

DATA STRUCTURES LAB External EXAM - 2022

  SET-1:      a) Implementation of Breadth First Search(BFS)      b) Queue ADT Using Linked List.   SET-2:      a)  Implementation of Depth First Search(DFS)      b) Circular Queue Implementation. SET-3:      a) Stack and Queue ADT using Array.      b) Double-ended Queue using Array. SET-4:      a) Single Linked List implementation with any 4 operations.      b) Bubble Sort. SET-5:      a) Double Linked List implementation with any 4 operations.      b) Selection Sort. SET-6:      a) BST implementation with the following operations           create,display,search,delete .      b) Insertion Sort.   SET-7:      a) Infix to Postfix conversion using Stack.      b) Merge Sort.   SET-8:      a) Balancing Symbols using Stack.       b) Quick Sort.   SET-9:      a) Postfix Evaluation using Stack.      b) Heap Sort.  SET-10:      a) Stack ADT using Linked List.      b) Implementation of Binary Tree Traversals.    External Examiner  -------------------------- Mr. M.Naveen, Asst. Prof, RVR&JC
Image
  OPERATORS: An operator is a symbol which helps the user to command the computer to do certain mathematical or logical manipulations. Operators are used in C language program to operate on data and variables. C has a rich set of operators which can be classified as 1. Arithmetic operators. 2. Relational Operators. 3. Logical Operators. 4. Assignment Operators. 5. Increment and Decrement Operators. 6. Conditional Operators. 7. Bitwise Operators. Arithmetic Operators: - All the basic arithmetic operations can be carried out in C. All the operators have almost the same meaning as in other languages. Both unary and binary operations are available in C language. Unary operations operate on a single operand, therefore the number 5 when operated by unary – will have the value –5. Arithmetic Operators Operator Meaning Example + Addition or Unary Plus x + y – Subtraction or Unary Minus x -