Posts by Geovane Wickert • 111 points
5 posts
-
1
votes1
answer118
viewsQ: Optimization of Cache Memory usage
I received a code implementing Dijkstra in C, and my mission is to optimize this code. The code is this: #include <stdio.h> #include <stdlib.h> #include <string.h> #define…
-
1
votes2
answers899
viewsA: Graphs: the longest path
Just to update and help someone who just happens to want the code solved. import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException;…
-
5
votes2
answers899
viewsQ: Graphs: the longest path
Well, as a college job, I have to create an algorithm that, given a certain file with x is able to verify which is the largest sequence of numbers which, on the basis of 6, comply with the following…
-
2
votes1
answer844
viewsQ: Complexity analysis
I have a question about the complexity analysis of this code in Java: public static int cont; public static int recursive(int base,int numb,ArrayList<Integer> lista){ if(lista.size()>base)…
javaasked Geovane Wickert 111 -
2
votes1
answer5287
viewsQ: Stackoverflow
Hello, I wonder why I get the Stackoverflow error in this code, but if I add one more condition in the recursive method, that is if(list.contains(Numb)) I don’t get this error. (This code would be…
javaasked Geovane Wickert 111