Hi All,I have a problem in my project that we had to implement a search engien , which will perform a runtime search over a enormously huge db(which will be now in memory).So My problem is how to organize that data with a search algo which will return all the results in minimum time.for eg u ...
128 byte By
DaleGroa at 2007-11-26 19:59:30
Hi peoplesome one know how can I put a simple java application in the systray of windows?thanks folksss!!!!
Hi, Can we simulate a network (with some nodes and connections between nodes)? I think for simulating a network we construct a graph with nodes and vertices. If we can do the above, can we simulate the action of sending packets between the nodes?Can we do this in
ok so im tryingto do this cointoss program cause i have the java an intro to problem soloving and programming 4th editioni have no idea how to do this would someone be able to help me with this it would be a big helpfor anyone that has the book its on page 126 number 6
1294 byte By
maririna at 2007-11-26 20:20:30
Hello All! I was hoping someone could tell me how to terminate my loop. The purpose of my program is to find the last position of "100" in the array that I am to create, and terminate the loop afterwards. My current output is 4 1. (I would like just 4)When I add "break ;" before ...
Greetings!Since this is my first post, i want first to thank to all of you that made this forum grow, since it helped me a lot in previous times.Now, my problem =)I've made several searches across these threads and found none of use. Well, I found some, but they just don't do the job =\I ...
Hello,I search some algorithm and source code in Java for compute 3D Skeleton ok discrete shape.Someone know where I cna find it ?Thank you...
I am trying to make a program that finds similarities within a wav file. I want to break the wav file into pieces that are about a second long. Then, I want to convert each piece into a number that represents that second's wave. Last, I want to find the seconds that are similar, by finding the ...
Hi all, this is my first time posting here, I tried doing a search but i didn't find what i was looking for so i hope someone out there and help me out~Anyways, my question is that howcome when I am putting entries into either of these maps, the times for entry acutally gets faster as more ...
i want 2 make a project on steganography usingh f5 algorithm plz can anyone help me its urgent
967 byte By
mitekea at 2007-11-26 21:38:07
I hate to reinvent the wheel so I figured if anyone had a decent algorithm for doing a reformat on a string to fill a certain width. By this I mean if given a string and a width of 80, I want to get back a list of lines back <= 80 characters in width, breaking at whitespaces in the original ...
hi,i santanu need help of the people of this forum on developing the project on generation of computer science department .input- the number of teacher,no of class rooms,no of classes rae specified output-- the time table is generated witha the help of programi got a largr project which is ...
335 byte By
Mordana at 2007-11-26 21:45:30
I'm trying to create a bit-level trie using integers for a memory constrained applicationFor some reason I think that using such a Trie will be better (faster and less memory) than a HashTable with Integer objects mapping Objects.Is this intuition right or should I just use a ...
I have a non-binary tree and I have its pre-order traversal. I can distinguish between leaf and non-leaf nodes. How can I reconstruct the tree only from the pre-order traversal?
hi i tried this encryptionI am geting no such algorithmCipher cipher = Cipher.getInstance("RSA","SunJCE");cipher.init(Cipher.ENCRYPT_MODE, getPublicKey());//byte encrypted[] = cipher.doFinal(getBytes(abc));byte encrypted[] = cipher.doFinal(abc.getBytes());byte output[] = ...
I am Developing a project on Steganography using 24bit BMP images as cover objects.I am using a 24bit BMPimage .I have written the following code to grab pixels from the image.But it is returning an array of -1's ,where as i should get the pixel values.please help me in solving the ...
hi,How can we extract LSB's from the pixels!!!Please help me its urgent....a code will be big help!richa_sharma
May i have the algorithm for the minimalization karnaugh map that is writing in java?Thanks for help!
Hi everyone, im new to this and am looking for some help. Im doing a java course in college. Its only a basic intro to java but its quite difficult. im on a question that requires me to use loops.....Find the smallest number in a list of 10 integers.i think i have to ask for an input of 10 ...
152 byte By
Ixnaya at 2007-11-26 22:49:55
How do you create a random access file using console interface which allows the user to enter many records, and eventually read them one by one..
Hi, Im quite new to java ^^Would like to ask how to round down or up a double or float decimal value?I was trying to display a cosine table using a for loop to display but the values that it added exceeded my upperlimit so the last result wont be displayed.for(c = lowerl; c <= upperl; c = c ...
Can anybody point me the generic algorithm for making combinations from Arrays.eg : two String arrays - { "Red" , "Blue" } and another { "10" , "20" ,"30" } Result should be {{ "Red" , "10"} , { "Red" , "20" } , { "Red" , "30" } , { "Blue", "10" } , { "Blue", "20"} , { "Blue" , "30" } }I can ...
Can anybody point me the generic algorithm for making combinations from Arrays.eg : two String arrays - { "Red" , "Blue" } and another { "10" , "20" ,"30" } Result should be {{ "Red" , "10"} , { "Red" , "20" } , { "Red" , "30" } , { "Blue", "10" } , { "Blue", "20"} , { "Blue" , "30" } }I can ...
3779 byte By
jvaudrya at 2007-11-26 22:59:11
Here is the method I would like to optimize. I am wondering if there is also a way to do this with bit shifting operators or the like?public static final int getMagnitude(double value) { return (int) (Math.ceil(Math.log10(value)));}// this version runs a bit faster since there is no division. ...
370 byte By
vic_ska at 2007-11-26 23:05:43
Hello,I have a fairly straightforward problem. I have a 'while' loop that traverses over 3000 array elements (our company's client emails and other information) and sends out emails. Because it takes time to go through this set, is there a way to improve the performance so traversing of the ...
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 ...
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 ...
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). ...
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 ...
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
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 ...
i want algorithm for transaction mapping algorithm for frequent itemset mining in data mining
can someone show me the proof why arithmetic coding is almost as small as the entropic size of the data?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...