Blog Archives

Find Shortest Path Using Java

This algorithm will find shortest path between two points in a map where road distance indicated by a number. Where is given : Start city A and Destination city Z List of Distances between Cities: A – B : 10

Tagged with: ,
Posted in JAVA

Lexical Analysis in Compiler Design Using Java

Lexical Analyzer: As the first phase of a compiler ,the main task of the lexical analyzer is to read the input characters of the source program ,group them into lexemes ,and produce as output a sequence of tokens for each

Tagged with: , , , ,
Posted in JAVA

Find GCD Using Java

Here my programme will input two number from user and after that it will find Greatest Common Divisor (GCD) .

Tagged with: ,
Posted in JAVA

Car Workshop(Multi Server Queuing) Simulation Using Java

In real world Car workshop is one of best example of Multi Server Queuing System. Here i’m trying to solve this kind of simulation using java. Save this code as Server.java and then… Save this file as MultiServerQueueingSystem.java To get

Tagged with: , ,
Posted in JAVA

Simulation of Multi Server Queuing System

Multi server means real world   system such as car workshop, Barger Shop etc. Code is bellow for Server class(Server.java): Save this code as Server.java and then… Save this file as MultiServerQueueingSystem.java   To get complete project knock me through

Tagged with: ,
Posted in JAVA

Simulation of Single Server Queuing System

In simulating real world systems on computer like a Single channel queue consisting of a single server for serving the queue of customers.so we have its following simulation programme  using java: To get complete java project you may knock me

Tagged with: , ,
Posted in JAVA

Prime number using java

Find prime number  with simple java code . So lets try it your self…

Tagged with:
Posted in JAVA

Page replacement algorithms using Java

  1. FIFO (First In, First Out): select the page that has been in main memory the longest use a queue (data structure) problem: although a page has been present for a long time, it may be really useful Windows NT

Tagged with: , ,
Posted in JAVA

CPU Scheduling Algorithm using Java

Scheduling Algorithms The following CPU scheduling algorithms will be contain  : – First-Come, First-Served (FCFS). – Shortest-Job-First (SJF). –Priority. – Round-Robin (RR). Step 1: Create a java package name cpuscheduling and a class operation  Step 2: Create a java Main class  within package

Tagged with: ,
Posted in JAVA

Banker’s Algorithm Using Java

The Banker’s algorithm is run by the operating system whenever a process requests resources.The algorithm avoids deadlock by denying or postponing the request if it determines that accepting the request could put the system in an unsafe state (one where deadlock could occur).

Tagged with: ,
Posted in JAVA