A curated collection of optimized KTU BTech CS lab programs. Search, filter, and copy code instantly.
This program implements the file transfer protocol to transfer files.
This program implements the distance vector routing algorithm using Bellman-Ford equation to calculate the shortest paths between all network nodes and display routing tables for each router.
To implement the leaky bucket algorithm to simulate network traffic shaping. It demonstrates how a buffer with fixed capacity handles random packet arrivals by adding packets when space is available, dropping excess packets when overflow occurs, and leaking packets at a constant rate to control data transmission and prevent network congestion.
To implement sliding window protocol with Selective Repeat ARQ protocol using socket programming in C.
To implement the Go-Back-N Automatic Repeat reQuest (ARQ) protocol using socket programming in C.
To implement the Stop-and-Wait Automatic Repeat reQuest (ARQ) protocol using UDP socket programming in C to ensure reliable data transmission.
To implement a UDP client and server program to exchange data using socket programming in C
To implement a simple TCP client and server program for exchanging messages using socket programming in C.
To create a parent and child process using the fork() system call and compute the sum of even and odd numbers separately.
Simulate the FIFO page replacement algorithm and calculate number of page faults for a give page reference string and a fixed number of memory frames.
Implement bankers algorithm for deadlock detection.
Implement Priority CPU scheduling algorithm.
Implement RR CPU scheduling algorithm.
Implement SJF CPU scheduling algorithm.
Implement First Come First Serve CPU scheduling algorithm.
Implementation of built-in functions in RDBMS.
Implementation of various aggregate functions in SQL.
Implementation of order by, group by & having clause.
Implementation of set operators, nested queries and join queries.