diff --git a/README.md b/README.md deleted file mode 100644 index 51757b0..0000000 --- a/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Buffer-4.0 -Buffer is a Data Structures and Algorithms Project series, in which students can participate as mentees in teams of 3-4 people. -This year the themes on which students can create a project are- - -1. Healthcare -2. Digital Society -3. Open Innovation -4. Custom data structure to store data - -This repository is created for all the teams to be able to upload their final project source code for the same. - -While submitting, note that: - -Each folder should have the name of the team and inside a readme file with team member details, (name, year, branch) and their theme. The readme file should also contain the link to their presentation as well as the drive link where all the three report documents would be stored. - -Happy Coding :) diff --git a/ReadMe.md b/ReadMe.md new file mode 100644 index 0000000..1230e1d --- /dev/null +++ b/ReadMe.md @@ -0,0 +1,38 @@ +TEAM RAMP + +Theme:Digital Society + +Project Theme:Parking Management System + +Project Name:RAMP PARKING SOLUTIONS + +Team Members: + +Madhavi Dewalkar-SY ENTC + +Anushka Desai-SY ENTC + +Riya Barne-SY ENTC + +Purva Bhosale-SY ENTC + + +Project Description: + +RAMP is one stop solution for solving all your parking needs! +It helps you find the best possible parking spot according to type of vehicle, proximity to current loaction, government dating system(even/odd parking),etc. + +Project Drive link: https://drive.google.com/drive/folders/1DyMzXsDtXPRPtQ-dLy2_VAP7h9JpjBqR?usp=sharing +(Video Explanation and Reports) + +Sample Website:https://madhavidewalkar.github.io/RAMP_SY/ + +Data Structures Used: +Hash Maps +Graphs +Arraylist +Arrays + + + + diff --git a/bufferproject-java/bin/Final/Sitch.class b/bufferproject-java/bin/Final/Sitch.class new file mode 100644 index 0000000..81812ce Binary files /dev/null and b/bufferproject-java/bin/Final/Sitch.class differ diff --git a/bufferproject-java/bin/garrage/dijkstra.class b/bufferproject-java/bin/garrage/dijkstra.class new file mode 100644 index 0000000..6d52766 Binary files /dev/null and b/bufferproject-java/bin/garrage/dijkstra.class differ diff --git a/bufferproject-java/bin/module-info.class b/bufferproject-java/bin/module-info.class new file mode 100644 index 0000000..643845b Binary files /dev/null and b/bufferproject-java/bin/module-info.class differ diff --git a/bufferproject-java/bin/weightedgraph/Maingraph.class b/bufferproject-java/bin/weightedgraph/Maingraph.class new file mode 100644 index 0000000..de7f948 Binary files /dev/null and b/bufferproject-java/bin/weightedgraph/Maingraph.class differ diff --git a/bufferproject-java/bin/weightedgraph/firstgraph$Edge.class b/bufferproject-java/bin/weightedgraph/firstgraph$Edge.class new file mode 100644 index 0000000..0e8d3ad Binary files /dev/null and b/bufferproject-java/bin/weightedgraph/firstgraph$Edge.class differ diff --git a/bufferproject-java/bin/weightedgraph/firstgraph$Node.class b/bufferproject-java/bin/weightedgraph/firstgraph$Node.class new file mode 100644 index 0000000..52c5624 Binary files /dev/null and b/bufferproject-java/bin/weightedgraph/firstgraph$Node.class differ diff --git a/bufferproject-java/bin/weightedgraph/firstgraph.class b/bufferproject-java/bin/weightedgraph/firstgraph.class new file mode 100644 index 0000000..1a98f39 Binary files /dev/null and b/bufferproject-java/bin/weightedgraph/firstgraph.class differ diff --git a/bufferproject-java/src/Final/Sitch.class b/bufferproject-java/src/Final/Sitch.class new file mode 100644 index 0000000..81812ce Binary files /dev/null and b/bufferproject-java/src/Final/Sitch.class differ diff --git a/bufferproject-java/src/Final/Sitch.java b/bufferproject-java/src/Final/Sitch.java new file mode 100644 index 0000000..417cd9f --- /dev/null +++ b/bufferproject-java/src/Final/Sitch.java @@ -0,0 +1,52 @@ +package Final; +import java.util.*; +import weightedgraph.*; + +public class Sitch { + + static String name; + private static Scanner sc; + + public static void main(String[] args) + { + String str; + Maingraph m=new Maingraph(); + sc = new Scanner(System.in); + do + { System.out.println("*************WELCOME TO RAMP PARKING SOLUTIONS***********"); + System.out.println("\nEnter your name"); + name=sc.next(); + System.out.println("\nHello "+ name + "!"); + System.out.println("\nChoose your current location"); + System.out.println("\n1.Bavdhan\n2.Kothrud\n3.Karvenagar\n4.Warje"); + int ch=sc.nextInt(); + + switch(ch) + { + case 1: + System.out.println("\nYou are at Bavdhan"); + m.NodeA(); + break; + + case 2: + System.out.println("\nYou are at Kothrud"); + m.NodeB(); + break; + case 3: + + System.out.println("\nYou are at Karvenagar"); + m.NodeC(); + break; + case 4: + System.out.println("\nYou are at Warje"); + m.NodeD(); + break; + } + System.out.println("\nDo you want to continue using the app?(Y/N)"); + str=sc.next(); + }while(str.equalsIgnoreCase("Y")); + + System.out.println("THANKYOU FOR USING OUR APP!" ); +} + +} \ No newline at end of file diff --git a/bufferproject-java/src/garrage/dijkstra.class b/bufferproject-java/src/garrage/dijkstra.class new file mode 100644 index 0000000..6d52766 Binary files /dev/null and b/bufferproject-java/src/garrage/dijkstra.class differ diff --git a/bufferproject-java/src/garrage/dijkstra.java b/bufferproject-java/src/garrage/dijkstra.java new file mode 100644 index 0000000..6100ab4 --- /dev/null +++ b/bufferproject-java/src/garrage/dijkstra.java @@ -0,0 +1,182 @@ +package garrage; +import java.util.*; + + +import java.util.function.*; +import java.util.stream.Collectors; + +import weightedgraph.Maingraph; +import weightedgraph.firstgraph;; + + +public class dijkstra +{ + Scanner sc=new Scanner(System.in); + int whirl; + int source; + int two; + static final int totalVertex = 8; + + int minimumDistance(int distance[], Boolean spSet[]) + { + int m = Integer.MAX_VALUE, m_index = -1; + + for (int vx = 0; vx < totalVertex; vx++) + { + if (spSet[vx] == false && distance[vx] <= m) + { + m = distance[vx]; + m_index = vx; + } + } + return m_index; + } + void conditions(int source,int distance[], int n, firstgraph g,String a,String b) + { + this.source=source; + List list=new ArrayList(); + for(int j=0;j Fourwheeler = four->four%3==0; + List Streamlist=list.stream().filter(Fourwheeler).collect(Collectors.toList()); + spot(Streamlist, distance, g); + + } + else + + spot(list, distance, g); + + } + + public void dij(int s, int graph[][],firstgraph g,String a,String b) + { + this.source=s; + int distance[] = new int[totalVertex]; + + Boolean spSet[] = new Boolean[totalVertex]; + + for (int j = 0; j < totalVertex; j++) + { + distance[j] = Integer.MAX_VALUE; + spSet[j] = false; + } + distance[s] = 0; + for (int cnt = 0; cnt < totalVertex - 1; cnt++) + { + int ux = minimumDistance(distance, spSet); + spSet[ux] = true; + for (int vx = 0; vx < totalVertex; vx++) + if (!spSet[vx] && graph[ux][vx] != -1 && distance[ux] != Integer.MAX_VALUE && distance[ux] + graph[ux][vx] < distance[vx]) + { + distance[vx] = distance[ux] + graph[ux][vx]; + + } + + } + + + conditions(source,distance, totalVertex,g,a,b); //call to function conditions + } + + public void avail(int a,firstgraph g,int k) + { + + if(a==1) + { + g.getNodes().get(k).setAvail(false); + displayavailability(g,k); + } + + } + + void displayavailability(firstgraph g,int k) + { + if(g.getNodes().get(k).isAvail()==false) + { + System.out.println("This spot is filled now"); + + } + + } + + public void spot(List list,int distance[],firstgraph g) + { + int ch=0,nearestSpot=99; + if(list.isEmpty()) + { + System.out.println("Sorry!No spots are available right now"); + + } + else + + { + Collections.sort(list); + + do + { + + for(int i=0;i nodes = new HashMap<>(); + public class Node + { + private String label; + boolean avail=true; + + public boolean isAvail() { + return avail; + } + + public void setAvail(boolean avail) { + this.avail = avail; + } + + public Node(String label) { + this.label = label; + } + + @Override + public String toString() { + return label; + } + + } + + + public Map getNodes() { + return nodes; + } + + public void setNodes(Map nodes) { + this.nodes = nodes; + } + + + public class Edge + { + private Node from; + private Node to; + private int weight; + + public Edge(Node from, Node to, int weight) { + this.from = from; + this.to = to; + this.weight = weight; + } + + public int getWeight() { + return weight; + } + + public Node getTo() { + return to; + } + + public void setTo(Node to) { + this.to = to; + } + + } + + public void addNode(Integer index,String label) { + var node = new Node(label); + + nodes.putIfAbsent(index,node); + //adjacencylist.putIfAbsent(node,new ArrayList<>()); + } + + public void addEdge(Integer from, Integer to, int weight) { + var fromNode = nodes.get(from); + if (fromNode == null) throw new IllegalArgumentException(); + + var toNode = nodes.get(to); + if (toNode == null) throw new IllegalArgumentException(); + + } + + + +} +