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 ...
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 ...
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 ...
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? ...
Hi Everyone,Please help me how to develop a utility for comparining two text files and display the output in the browser as givenAddedModifiedRemovedThanks
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 ...
*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 ...
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 ...
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); ...
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 ...
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!
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
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
can someone show me the proof why arithmetic coding is almost as small as the entropic size of the data?
i want algorithm for transaction mapping algorithm for frequent itemset mining in data mining
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 ...
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
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 ...
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). ...
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 ...
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 ...