Click here to Skip to main content
15,890,506 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Vector orientation Question. Pin
Maximilien31-Mar-09 5:34
Maximilien31-Mar-09 5:34 
GeneralRe: whatever shape Pin
Luc Pattyn31-Mar-09 5:38
sitebuilderLuc Pattyn31-Mar-09 5:38 
GeneralRe: whatever shape Pin
Maximilien31-Mar-09 5:42
Maximilien31-Mar-09 5:42 
AnswerRe: Vector orientation Question. Pin
73Zeppelin31-Mar-09 5:13
73Zeppelin31-Mar-09 5:13 
AnswerRe: Vector orientation Question. Pin
Tim Craig31-Mar-09 8:26
Tim Craig31-Mar-09 8:26 
AnswerRe: Vector orientation Question. Pin
Roger Wright1-Apr-09 20:06
professionalRoger Wright1-Apr-09 20:06 
QuestionHow To Scramble Numbers On These Tables? [modified] Pin
Feranawati31-Mar-09 3:56
Feranawati31-Mar-09 3:56 
AnswerRe: How To Scramble Numbers On These Tables? Pin
Feranawati22-Apr-09 3:03
Feranawati22-Apr-09 3:03 
Someone has made a program in Java like this:

import java.util.*;
public class Table {
static Scanner console = new Scanner(System.in);
public static void main (String[] args)
{

String list = "010509131741454953572125293337616569737702030406070810111214" +
"151618192022232426272830313234353638394042434446474850515254" +
"5556585960626364666768707172747576787980818283848586878889909192";
String number;
int counter = 0;
int randomNumber = 0;
int rowPlacement = 0;


Vector row_0 = new Vector();
Vector row_1 = new Vector();
Vector row_2 = new Vector();
Vector row_3 = new Vector();
Vector row_4 = new Vector();
Vector row_5 = new Vector();
Vector row_6 = new Vector();
Vector row_7 = new Vector();
Vector row_8 = new Vector();
Vector row_9 = new Vector();

for (counter=0; counter<184; counter = counter + 2)
{
number = list.substring(counter, counter + 2);

//-------------------------------------------------------------------
if (counter == 10 || counter == 20 || counter == 30 || counter >= 40)
{
rowPlacement = 0;
}
//-------------------------------------------------------------------
do
{
randomNumber = (int) ( 10 * Math.random() );
}
while (rowPlacement > randomNumber);
//-------------------------------------------------------------------

if (randomNumber == 0)
{
row_0.addElement(number);
rowPlacement = 0;
}

else if (randomNumber == 1)
{
row_1.addElement(number);
rowPlacement = 1;
}

else if (randomNumber == 2)
{
row_2.addElement(number);
rowPlacement = 2;
}

else if (randomNumber == 3)
{
row_3.addElement(number);
rowPlacement = 3;
}

else if (randomNumber == 4)
{
row_4.addElement(number);
rowPlacement = 4;
}

else if (randomNumber == 5)
{
row_5.addElement(number);
rowPlacement = 5;
}

else if (randomNumber == 6)
{
row_6.addElement(number);
rowPlacement = 6;
}

else if (randomNumber == 7)
{
row_7.addElement(number);
rowPlacement = 7;
}

else if (randomNumber == 8)
{
row_8.addElement(number);
rowPlacement = 8;
}

else if (randomNumber == 9)
{
row_9.addElement(number);
rowPlacement = 9;
}

}
System.out.println(row_0);
System.out.println(row_1);
System.out.println(row_2);
System.out.println(row_3);
System.out.println(row_4);
System.out.println(row_5);
System.out.println(row_6);
System.out.println(row_7);
System.out.println(row_8);
System.out.println(row_9);
}
}

But it didn't work correctly yet in order to result tables like I put at Mediafire.com (a file hosting service) name Enigma.xls:
http://www.mediafire.com/?sharekey=12a93ace84ea3ab56b21be4093fab7ace04e75f6e8ebb871
Smile | :)
QuestionNeed help finding an Algorithm for a project [modified]-with image link Pin
dfreeser30-Mar-09 6:34
dfreeser30-Mar-09 6:34 
AnswerRe: Need help finding an Algorithm for a project Pin
Jörgen Andersson30-Mar-09 9:47
professionalJörgen Andersson30-Mar-09 9:47 
GeneralRe: Need help finding an Algorithm for a project Pin
dfreeser30-Mar-09 10:26
dfreeser30-Mar-09 10:26 
AnswerRe: Need help finding an Algorithm for a project [modified]-with image link Pin
dfreeser1-Apr-09 11:16
dfreeser1-Apr-09 11:16 
GeneralRe: Need help finding an Algorithm for a project [modified]-with image link Pin
73Zeppelin2-Apr-09 3:44
73Zeppelin2-Apr-09 3:44 
Questiontheory of grahp Pin
mini_25068927-Mar-09 8:00
mini_25068927-Mar-09 8:00 
AnswerRe: theory of grahp Pin
73Zeppelin30-Mar-09 2:45
73Zeppelin30-Mar-09 2:45 
QuestionAlgorithm to generate CPU load in Windows Pin
Rennie7626-Mar-09 2:04
Rennie7626-Mar-09 2:04 
AnswerRe: Algorithm to generate CPU load in Windows Pin
Eddy Vluggen26-Mar-09 2:19
professionalEddy Vluggen26-Mar-09 2:19 
Answerpseudo-code Pin
Luc Pattyn26-Mar-09 2:34
sitebuilderLuc Pattyn26-Mar-09 2:34 
AnswerAdding: Algorithm to generate CPU load in Windows Pin
Rennie7627-Mar-09 0:21
Rennie7627-Mar-09 0:21 
AnswerRe: Adding: Algorithm to generate CPU load in Windows Pin
Eddy Vluggen27-Mar-09 1:50
professionalEddy Vluggen27-Mar-09 1:50 
Questionmethod behind FV function of excel Pin
Rupesh Kumar Swami24-Mar-09 19:36
Rupesh Kumar Swami24-Mar-09 19:36 
AnswerRe: method behind FV function of excel Pin
Roger Wright24-Mar-09 20:14
professionalRoger Wright24-Mar-09 20:14 
Questiondecimal to binary pattern using mantissa and exponents Pin
Sadaiyappan24-Mar-09 12:28
Sadaiyappan24-Mar-09 12:28 
AnswerRe: decimal to binary pattern using mantissa and exponents Pin
Yusuf24-Mar-09 13:03
Yusuf24-Mar-09 13:03 
AnswerRe: decimal to binary pattern using mantissa and exponents Pin
CPallini25-Mar-09 1:54
mveCPallini25-Mar-09 1:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.