Want To Do a Keyword Search ...Suggest Some DS and search algo's

755 byte By byteByBytea at 2007-11-26 19:54:08
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 ...

java and Systray

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!!!!

Simulating a network

297 byte By programming_javaa at 2007-11-26 20:00:46
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

Coin Toss program

290 byte By iknowTOOlittleaboutprograminga at 2007-11-26 20:09:05
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

question about terminating my loop

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 ...

Weird permutation algorithm

1370 byte By cRaZyFaCKaa at 2007-11-26 20:39:52
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 ...

Compute 3D Skeleton

170 byte By FiReTiTia at 2007-11-26 20:46:32
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...

wav analyzer

452 byte By esfsfefesa at 2007-11-26 20:49:26
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 ...

putting items into hashmap and treemap

789 byte By BlazinSuna at 2007-11-26 21:10:18
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 ...

steganography help required

101 byte By cesc.arsenala at 2007-11-26 21:18:18
i want 2 make a project on steganography usingh f5 algorithm plz can anyone help me its urgent

Paragraph fill

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 ...

time table generation of computer science department

510 byte By santybanty20a at 2007-11-26 21:42:21
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 ...

Trie of Integer literals as a way to map an int to an Object

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 ...

Reconstruction of a non-binary tree from preorder traversal

198 byte By javafora@gmail.coma at 2007-11-26 21:53:50
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?

No such algorithm: RSA

749 byte By Encryptiona at 2007-11-26 21:59:05
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[] = ...

Pixelvalues in BMP

2523 byte By richa_sharmaa at 2007-11-26 22:00:29
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 ...

LSB Algorithm!!

140 byte By richa_sharmaa at 2007-11-26 22:00:32
hi,How can we extract LSB's from the pixels!!!Please help me its urgent....a code will be big help!richa_sharma

Algorithm for minimalization karnaugh map

115 byte By -cherry-a at 2007-11-26 22:08:31
May i have the algorithm for the minimalization karnaugh map that is writing in java?Thanks for help!

Java Beginner

403 byte By andyneouka at 2007-11-26 22:36:38
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 ...

Random Access File HELP!!

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..

How to round down or up to the nearest decimal value?

438 byte By baijiazia at 2007-11-26 22:50:07
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 ...

Algorithm for Finding combinations from Arrays

403 byte By JCGEORGEa at 2007-11-26 22:51:11
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 ...

Algorithm for Finding out combinations from Arrays

618 byte By JCGEORGEa at 2007-11-26 22:51:12
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 ...

Math optimization (?)

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. ...

Algorithms - Improving O(n)

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 ...

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 ...

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 ...

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). ...

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 ...

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

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 ...

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

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?

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...