recursive Algorithom to loop thru all the values in a list

477 byte By MeherSantosha at 2007-11-27 11:43:14
Hi Guys, Please help me out.I have a list sayL with N Array lists in that .and i need to loop thru all the values in that to print all combinations.L = { L1,L2,L3....N}L1={ 1,2,3,4,5}L2={aa,bb,cc,dd,ee}L3={10,20,30}I need to loop thru all the values and print all like a odometer.like1,aa,101,aa,20 ...

Unicode-16 for mySQL image storage

478 byte By ArikArikArika at 2007-11-27 11:18:53
YEY!!!BOO!!!Well, I'm storing an image as a blob in a mysql database... great!I can read out the bytes too... great!What I'd like some help with is how to write to a file in unicode-16 format.I'm trying to use OutputStreamWriter... But I dont know what I'm actually doing. I checked out the ...

Should a method have only one return point/statement?

2219 byte By MartinBoehma at 2007-11-27 10:23:30
Hi,sometimes I have Code that looks like public boolean equals(final Object o) {if (o == null) {return false;}if (o == this) {return true;}if (!getClass().equals(o.getClass())) {return false;}if (this.getId() == 0) {return false;}final Link cObject = (Link) o;if (this.id != cObject.id) {return ...

MATLAB

304 byte By javoxygena at 2007-11-27 10:09:59
Hello everybody!!I would like to ask if anyone knows about MATLAB. Does anyone? I am trying to build a programme for the flow-shop sequence problem, and I though as the problem is almost maths, the MATLAB could help me. If the question is yes, is it easy to use MATLAB? ...

Algorithm for Text file comparision

218 byte By myDreamEffortsa at 2007-11-27 9:48:45
Hi Everyone,Please help me how to develop a utility for comparining two text files and display the output in the browser as givenAddedModifiedRemovedThanks

Programming Statistics

1104 byte By yahwehagapea at 2007-11-27 9:42:59
I need to find data on the distribution of cut blades of grass across the virtual lawn. Consider a 10 x 10 grid of un-cut blades of grass. The lawn mower traverses the grid and displaces the blades of grass. Now, I need to find some way to determine a good lawn mower route from a poor lawn ...

Need help with tree edit distance and restricted top-down mapping algorithm

1142 byte By style.x7a at 2007-11-27 9:01:33
*This topic was posted a while ago in "java programming" section but was suggested to try hereHi everyone,A couple of days ago I posted a topic on analyzing structure similarity between two web pages. After some researching, I know I need to work out some tree matching algorithms: tree edit ...

Superset Limitation

4770 byte By Pollaa at 2007-11-27 9:00:07
I wrote this script for finding superset of a set but it has limitations in the number of elements it can find for 19 elements after this it crashes memory heap limitation any other way to solve this problem is there any standard (or known) algorithms that resolves this problem NOTE: in TOPIC ...

genetic algorithm-crossover/reproduction

3480 byte By brisJavaa at 2007-11-27 8:53:41
Random r=new Random(); int pointNode1=r.nextInt(component1.size()); int pointNode2=r.nextInt(component2.size()); if(action=="Reprod"){//do Reproduction or Crossover System.out.println("--"); System.out.println("pointNode1:"+pointNode1); System.out.println("pointNode2:"+pointNode2); ...

PONG that s HARD (hard to believe eh?)

739 byte By ArikArikArika at 2007-11-27 8:40:21
WOW.Well, its not REALLY pong thus it is hard... So, take the classic pong game but change the shape of the paddle to lets say any polygon... When a ball hits any side of this polygon it should bounce off with the same angle as the incident angle but in the opposite dierection... Ok... So, how ...

NEH algorithm

164 byte By javoxygena at 2007-11-27 7:28:44
I am wondering where can I find NEH algorithm in java code? I am searching in the internet but I can't find any relative document. Thanks in advance!

i need help comparing 10 numbers

136 byte By colombia123a at 2007-11-27 6:53:44
hi i need help comparing ten numbers given by the user and stored in the form of an array. the numbers cannot be repeated. thanks

All possible combinations of n vectors with k elements

658 byte By ShakuR_a at 2007-11-27 6:44:09
Dear all,I have a method which takes as input N vectors each one containing K strings.I want all the possible combinations of strings occurring if I select only one string at a time from each vector and from all vectors. For example:If I have the vectors:v1[A, B, C] v2[H, k] and v3[k, O, P]an ...

Using FFT to find and alter frequency in an audio file

1303 byte By healyrona at 2007-11-27 6:36:24
Hi allFirst off, to 'matfud' and others who have posted on using FFT to detect frequency content of an audio segment, many thanks. Your posts have been very, very helpful, especailly these threads:"extracting frequency using fft ""FFT to get DTMF on a Wav file "Now, with the ***-kissing out ...

Algorithm Problem, Urgent

1881 byte By Lepinat0ra at 2007-11-27 6:15:49
I know Im brand new on this site and this is very rude to just come on and post a question i have but i dont know where else to go. Im going to college now to major in programming and i have to take a alg/flowcharting class and my prof in there is a jerk. The only algorithm i have done is ...

a little recursion help

1962 byte By arthan-khwelnula at 2007-11-27 6:09:10
I am currently making a program that solves sudokus and am running into a little difficulty. this is the solve function that's called from my main method. it is passed the 2D array containing the contents of the sudoku program. The program calls 3 other methods (CheckItRow, CheckItCol and ...

Permutation Combination Help required...............(2D array combs prob.)

1283 byte By spanse@DCa at 2007-11-27 5:40:54
I have an array of object.I want to perform the permutation combination on 2D array to fetch the all possible combinations of n(row)-5(column-fix) elements.suppose i have 5 rows and 5 columns in the table then it should generate all possible combinations i.e(120) without repeating the elements. ...

Beginner Java student: Big-Oh Notation?

1784 byte By lk@ucsca at 2007-11-27 5:33:27
I don't know what happened, but I completely understood the concept of big-oh notation in the lecture, but when I read it again in the textbook, I got lost. Here is what my textbook says:Q(1)"In general, O(f(n)) means that the quantity being measured is at most c X f(n) for some constant ...

Shape reconstruction

1549 byte By ArneWeisea at 2007-11-27 4:04:59
Hi all! It's time for my next problem ;) And before I post it, i would just like to thank everyone in this forum for all the help I've gotten from you guys.Anyways, I'm trying to reconstruct a shape from an unordered set of points. My goal is to do a (least squares) fit with a beizer spline, ...

non linear regression algorithms

360 byte By baijupaca at 2007-11-27 4:04:43
hello all, I am looking for a non linear regression algorithm to find constants (a,b,c,d) for my function Y=Exp^(a*x+b)+Exp^(c*x+d)Where Y and X i already have the dataUsing non linear regression i need to find the constants which would be the best guessesCould some body provide some ...

Change forum screen name

407 byte By Michael_Barbieria at 2007-11-27 3:46:00
Hi,I wasn't sure where to go for this, there doesn't seem to be a "support forum" or any easy way to reach the forum administrators without starting from the top at Sun.I don't know why my screen name is my name, but I was wondering if there's a way to change it. I have tried the Forum ...

Need Help

852 byte By dima7amdolilaha at 2007-11-27 3:37:14
I am trying to rebuild a tree from its preorder traversal(A (B (C) ()) (E )) where each (X) is a nodeI have this (A (B (C) ()) (E )) as a string.here is what I did .Build generic BinTree with Data as charcter and left and right treeand each tree is built recursively .It seem to me logically ...

Java code to list files in Windows O/S by FIFO sequence

704 byte By Siva_VSa at 2007-11-27 3:36:03
Hi,I am new to java and working on a project which needs to list files from Windows O/S by FIFO sequence. Here is the scenario,One of the application logs/stores files in Windows System. After that files has to be moved to another files system on AS/400 by FIFO sequence.I need to write java ...

Standard Deviation Population?

1804 byte By MartinHilperta at 2007-11-27 3:33:29
I need to rewrite the SQL Server's function STDEVP in Java. I did the normal standarddeviation (STDEV) as it is widely described on the net:/*** Get the standard deviation of a list of numbers.* * @param numbers List of numbers.* @return Standard deviation of ...

Binary Tree

521 byte By dima7amdolilaha at 2007-11-27 3:30:03
I am trying to rebuild a tree from its preorder traversal (A (B (C) ()) (E )) where each (X) is a nodeI have this (A (B (C) ()) (E )) as a string.I was thinking of implementing this with a Stack but It looks like it is hard process. the other approach is to access each character with the ...

all possible permutation

449 byte By ravengaa at 2007-11-27 3:22:14
Hello all,I have an array of characters and I want all possible permutations of it. I have seen some threads in forums but i couldn't find the exact one.For example char ch[]={'a','b','c'};Output should ...

Miller Rabin Algorithm

2265 byte By MoonSpotLighta at 2007-11-27 3:18:56
Hi, I wrote the following code for Miller Rabin algorithm:public static void main(String[] args){MillerRabin test = new MillerRabin();test.test_prime(221,5,2,55);}public void test_prime(int n, int a, int k, int q){if( (int)(Math.pow(a,q)) % n == 1 ...

Best algorithm to sort semi-sorted arrays?

3551 byte By klana001a at 2007-11-27 2:55:37
I am trying my hand at the hutter prize ( http://prize.hutter1.net/)My current compression algorithm sorts an array of Comparable Objects every main cycle.-This array of objects can potentically increase by one object per cycle.-Each object's comparision value can change per cycle, however its ...

Rotating around the centre point on Z axis

591 byte By ANDREWP7a at 2007-11-27 2:49:44
Hello,I am currently trying to write a Tetris clone but I am having trouble rotating a 4x4 grid around the centre point.I am using the standard formula for rotating around the z axis using a 5x5 gridx' = cosine(90)*(x-2) - sine(90)*(y-2) + 0y' = sine(90)*(x-2) + cosine(90)*(y-2) + 0The -2 is ...

help me

600 byte By aljabria at 2007-11-27 2:43:14
i have hw , so i would like to get some sot of ideasthe hw isDevelop an a lgorithm for finding the median of a list of numbers using the couting method 1234567894325618107for this algorithm, assue that the numbers in the list are uniqe(no duplicates) and that the length of the list is an odd ...

please help in pattern matching

450 byte By gari_da at 2007-11-27 2:36:37
hi ..I m new to java n i m facing very much probem in my project.my project is on image processing tht involves opening two image on two different JInternalFrme and then selcting region of interest from both the images and thn i have to calculate the percentage of matching.plz cud any body help ...

OCR letter/edge detection...

655 byte By cakea at 2007-11-27 2:13:45
Hi, sorry if this seems a little odd for this forum but here goes:I would like to write a piece of OCR software for myself ;) but currently I know very little about the subject? My question is, what mathematical formulas, algorithms (or how would you do it) are used to detect the individual ...

Graph Layout Algorithm

798 byte By Kiseva at 2007-11-27 2:07:46
Hi, My Name is Venko Kisev and I'm studying IT and Business Administration at the University of Mannheim, Germany. I have to develop an Application that becomes a package of java classes and draws a UML Class Diagram. I have already done most of the things. My only problem is, that I can't ...

Image storing algorithm at photo album sites

1217 byte By netsonicca at 2007-11-27 2:03:29
Hi there;I am coding a image storeing website... Photo albums etc.But storing them in a folder system is getting complex for me... Whats the best way of storing image to folders?What i did up to now is: every member has its own main folder named with hex numbers... and i rename the uploaded ...

Dynamic Programming Problem

2484 byte By C_Zhaoa at 2007-11-27 1:49:17
Hi all, I'm a bit stuck on a certain dynamic programming problem from the USACO training pagesThe problem statement is as follows:Given V denominations of coins values, and a target value N, determine how many the total number of unique ways to construct N amount of money using the coin ...

Equation for logic circuit

1619 byte By nut467a at 2007-11-27 1:42:25
hello! On my project, about logic circuit. I have AND, OR, NOT gate for simulate with binary String 0 or 1. Now I want to create a component add on circuit with equation that has a step:1. show dialog for input arithmatic equation(+, -, *, /).2. input equation as (3A+B)-C=5Y+Z3. program can ...

ASCII85 algorithm description on Wikipedia is wrong?

1421 byte By rkippena at 2007-11-27 1:41:31
Here is the description from Wikipedia of what to do when encoding the last bytes:> At the end of the data, the last group can have fewer than four bytes. Virtual> zero bytes are appended to the data, and after encoding, if there was one byte,> only two characters are output; if there ...

ACO for finding best paths on a graph.

6451 byte By law1211a at 2007-11-27 1:38:18
hello,i am trying to use aco alg to print shortest path from a specified source node to a destination node. i have created a graph where i have all the vertices (array of strings) and edges(neighbours) stored. I am trying to get the ants to trail randomly on the connected edges from start to ...

maze solving

776 byte By itendsnowa at 2007-11-27 1:23:46
I'm wanting some help with regards to what is possible in java.I'm writing a mouse than can solve a 2D maze, 16*16 cells. I'm wanting to make sure the mouse can explore the maze and then solve it based on all the routes its found. I figured I could use the faster flood algorithm once I have ...

Algorithm PLEASE help :)

605 byte By n3m0a at 2007-11-27 1:21:38
Hi I'm new in Java and I need to find algorithm for these questions : 1. Write a program that reads a number n and sequence of n numbers and finds in the sequence the longest area of adjacent equal elements . Example : n = 14sequence = {7,3,3,3,7,7,7,7,3,3,3,2,7,2}result = {7,7,7,7}2. Write a ...

Two problems with algorithms

725 byte By n3m0a at 2007-11-27 1:21:27
Hi, i can't figure algorithm for these two problems can you help me? :1. Write a program that reads a number - n and a sequence of n numbers and finds the longest are of adjacent equal elements. Example :n = 14sequence = { 7, 3, 3, 3, 7, 7, 7, 7, 3, 3, 2, 3, 7, 2}result = {7, 7, 7, 7}2. Write ...

Array Problem - help needed.

485 byte By Serokoa at 2007-11-27 1:16:12
Hello, I believe the easiest way is to explain what I am needing...I am needing to read a text file from a website http://www.thisisnottheactualwebsite.com/members.txtThe information is stored likeiy1175696721yx1176164740 xm1176351702And so forth...I would like to call upon it like ...

arithmetic coding

111 byte By TheHattera at 2007-11-27 0:44:30
can someone show me the proof why arithmetic coding is almost as small as the entropic size of the data?

algorithms

100 byte By suganwaran267a at 2007-11-27 0:25:49
i want algorithm for transaction mapping algorithm for frequent itemset mining in data mining

Distribution of weights

1834 byte By phalkonea at 2007-11-27 0:15:22
I'll try to explain as good as I can, but if you have any questions please don't hesitate to ask.I have a beam of about 200 m which is supported in the middle. The resulting moment which is working on this beam is known (the total weight + the distance from the middle). The beam is divided ...

GC alghoritms

207 byte By cat4hirea at 2007-11-26 23:41:28
Hi all,I'd like to know if someone can point me to papers that explains how GC works and which are most important alghoritms and techniques (e.g., generational GC...).Thanks,Luca

how to build good formatter

761 byte By Meirya at 2007-11-26 23:39:59
Hello alli need to build formatter , something that takes one format and convert it to different format now as general programming task there isn't much to it but if i like to take this formatter to more generic uses it can start to be more complex for examplenow i need to build formatter that ...

GA Help Needed Urgently

9479 byte By Niru99a at 2007-11-26 23:37:04
Hi,I'm stuck on how exactly to define the selectParent() method (the Selection method) because I have to take out samples of size 5 (the tournament size) from the population and then order those chromosomes ( in the contenders ArrayList) in order of fitness (the lower the fitness the better). ...

Algorithms - Loop optimization

589 byte By Plasmaa at 2007-11-26 23:23:16
Iterator itr = dkItems1.iterator();while (itr.hasNext()) {DKWorkQueue dk = (DKWorkQueue) itr.next();if (!dkItems2.contains(dk)) {sb.append(dk.toString() + lineSeparator);// out.write(dk.toString());out.newLine();count++;}}any way to do this ...

Algorithms - pokerhand evaluators, bit shifting and unique values...

1740 byte By cakea at 2007-11-26 23:07:49
Hi,Oh, and I originally posted this in the programming section and was told to move it! So here it is again:I have been experimenting with converting some code from c to java. I used cactus kevs card hand analyser ( http://www.suffecool.net/poker/evaluator.html) as my base unit and having ...