Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Need source code for FRECCA algorithm.

Need source code for FRECCA algorithm.

Scheduled Pinned Locked Moved Java
javacomalgorithmshelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 8362739
    wrote on last edited by
    #1

    I tried to implement as following in java. But the code is not working. Someone help to complete this code in java or any other language. This is the algorithm - https://onedrive.live.com/?cid=9a23cd9d216bc283&id=9A23CD9D216BC283!192&sff=1&v=3[^] and code is below-

    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.PrintStream;
    import java.util.*;

    public class Code {
    private static int N = 100,C = 5;
    private static double[][] S = new double[N][N], P = new double[C][N], l = new double[C][N],PR = new double[N][C];
    private static double[] PI = new double[C];
    private static double[][][] w = new double[C][N][N];
    final static double d = 0.85;
    public Code() {
    System.out.println("Code Class");
    }

    public double SumOfWkjm(int m,int j){
    	double ans = 0.0;
    	for(int k=0;k
    
    L 1 Reply Last reply
    0
    • U User 8362739

      I tried to implement as following in java. But the code is not working. Someone help to complete this code in java or any other language. This is the algorithm - https://onedrive.live.com/?cid=9a23cd9d216bc283&id=9A23CD9D216BC283!192&sff=1&v=3[^] and code is below-

      import java.io.FileNotFoundException;
      import java.io.FileOutputStream;
      import java.io.PrintStream;
      import java.util.*;

      public class Code {
      private static int N = 100,C = 5;
      private static double[][] S = new double[N][N], P = new double[C][N], l = new double[C][N],PR = new double[N][C];
      private static double[] PI = new double[C];
      private static double[][][] w = new double[C][N][N];
      final static double d = 0.85;
      public Code() {
      System.out.println("Code Class");
      }

      public double SumOfWkjm(int m,int j){
      	double ans = 0.0;
      	for(int k=0;k
      
      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What does "not working" mean?

      U 1 Reply Last reply
      0
      • L Lost User

        What does "not working" mean?

        U Offline
        U Offline
        User 8362739
        wrote on last edited by
        #3

        when C=N then the code run. but when N>C eclipse is showing error message pointing SumOfWkjm() Here in code C=5, so when N=5,it works, but when N=6 it is showing error message. Here is the full project - https://onedrive.live.com/?cid=9a23cd9d216bc283&id=9A23CD9D216BC283!193[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups