Skip to content

Instantly share code, notes, and snippets.

@bryantp
bryantp / kleinrock.cpp
Last active December 15, 2015 11:49
Kleinrock CPP
//#include "stdafx.h"
#include "KleinrockAI.h"
#include <iostream>
#include <vector>
#include "loaddistancepair.h"
int main()
{
package com.gmail.kleinrock;
//Implementation of Kleinrock's Independence Assumption
public class KleinrockIA {
//private int n; // number of lines in the network
//private int[] r; // list of offered loads
//private int[] d; // list of edge distances
//private double W0; // Target delay in bps
@bryantp
bryantp / gist:5232765
Created March 24, 2013 17:36
Java Implementation of Kleinrock's Independence Assumption
package com.gmail.kleinrock;
//Implementation of Kleinrock's Independence Assumption
public class KleinrockIA {
private int n; // number of lines in the network
private int[] r; // list of offered loads
private int[] d; // list of edge distances
private double W0; // Target delay in bps