logical parser

241 byte By sarisua at 2007-10-1 1:22:41
how can i parse and calculate an expression like " !((a | b) | b & c & !(d) & ((a | !(a) & b)|b) & e) " ?a,b,c,d...... is boolean.Sorry for my English.i need your help!Thank you..

image resampling algorithms

434 byte By g00fy_ma at 2007-10-1 1:22:43
hi to all,this is not a java specific question, as most posts ive searched here, refer ppl to JAI, however i am trying to find some articles/journals/psuedocode for image resampling algorithms such as Triangle, Hermite, Bell, BSpline, Lanczos3, Nearest, Linear, Fast Linear, BiLinear, Bicubic ...

JPG to JBIG Algorithm in JAVA

626 byte By hewittjelenaa at 2007-10-1 1:28:17
Hi!I need to do the jpg to jbg compresion. ( http://www.jpeg.org/jbig/)This is a bi-level fax compresion. I don't find any solution for it...I was looking at Markus Kuhn source code in c ( http://www.cl.cam.ac.uk/~mgk25/jbigkit/), but I'm still in school and I don't have the knowledge to ...

MD5

292 byte By TheEpicSnaila at 2007-10-1 1:33:23
Hey i know MD5 isn't reverseable , but it's not because of the logic that :3+5=8 and so does 2+6 , 1+7 , 4+4 so you cant take 8 back to 3 and 5 but is it possible to not "unhash" but rather get and array of possiblities from running the code backwards ish

Compression Algorithm (LZW,RLE,Hoffman) implemnation code for free

507 byte By cilent2004a at 2007-10-1 1:35:00
this file contain java implemntation of lzw and run length and hoffmancompression technique for compression text file :to run unzip project.zipand run using java sun one stdio or use dosethe main windowusing: C:\java JFrame_1enter the name of text file like:file.txt and coose the methodlink to ...

"effecient" duplicate removal from an array

513 byte By atlantisLoveAngela at 2007-10-1 1:37:58
Hi,I have looked at a lot of previous posts about how to effeciently remove duplicates OR detect duplicates in an array of integers, but unfortunately most of them are of O(n^2) time complexity orof O(n log n) time complexity with o(n) space complexityI was wondering if there is a faster ...

Batcher's bitonic sort - non-power of 2

1383 byte By zerothbasea at 2007-10-1 1:53:40
Been just messing around with several dozen sorting algorithms (was bored and this is what i do for fun). But I can't seem to find a good implementation of Batcher's bitonic sort. And I mean by "good", that it will work on all arrays, not just powers of 2 in length.Of course there are the ...

file encryption

176 byte By james91a at 2007-10-1 2:06:26
What kind of algorithm would you use to make this sort of program? I'm not too familar with doing something like this, so I wouuld like to see how you guys would do it.

batch processing and parallelism

2684 byte By damnhandya at 2007-10-1 2:09:03
I have recently taken over a project that is a batch application that processes a number of reports. For the most part, the application is pretty solid from the perspective of what it needs to do. However, one of the goals of this application is to achieve good parallelism when running on a ...

The D* Algorithm

1319 byte By Carthage_KNGa at 2007-10-1 2:09:12
Hello. I'm trying to implement Anthony Stentz' D* algorithm for our thesis. The algorithm I'm trying to implement can be found in this paper, http://www.frc.ri.cmu.edu/~axs/doc/icra94.pdfSo far, so good. The implementation works. I have tried hard to follow the algorithm described in the ...

Neural Networks, anyone?

433 byte By Squealsa at 2007-10-1 2:14:19
I'm designing a NeuralNetwork class to, well, be a neural network. Currently it uses a genetic algorithm to learn, but I'm trying to make it as well rounded as possible, so I'm writing a backpropagation algorithm for it as well. My question is, does anyone here know anything about the ...

Formatting question

468 byte By docwtsna at 2007-10-1 2:21:14
Hello,I am new to programming and the assignment was to output a list from a mortage calculation that counts down the months of the loan and shows the payment to pricipal, interest and remaining balance. The program works fine, but right now I am seperating my columns using \t. When the numbers ...

NASA must have a sense of humor

329 byte By Saisha at 2007-10-1 2:26:34
They launched a probe today called "Deep Impact". It will attempt to smash into a comet to see what it is made of. Now, aside from the fact that it is ironic they picked the same name as a movie about an asteroid hitting Earth, guess when the impact is due to occur? The 4th of July. Cosmic ...

Automating program

237 byte By Gerttya at 2007-10-1 2:34:27
Hi! I need help.I have to create a java program that initialise a crystal object, run it and save the report to some where.I should then schedule the java program as a service in windows admin setup to run every day.

Psudocode or Algorithm for Sha1PRNG (Secure Random class)

290 byte By henryiriawana at 2007-10-1 2:35:21
Can you help me by giving the function of that algorithm? SHA1PRNG. I've searched in the Java help but it just told it was built in. Does someone know what is the funtion of the SHA1PRNG. Does it have funtion such as Y=X mod 3 or something like that?Thanks for your help.....

I need help! urgent !!! MAIL CLIENT

182 byte By wujoa at 2007-10-1 2:39:08
I need "simple" mail client in made Jbuilder for my school. Please help me. I have no idea how to do it. I need source etc. Please help me. It's very urgent. Thanx very much.

PRNG validation

140 byte By MarkFairchilda at 2007-10-1 2:44:54
Is there any standard battery of tests that one can run on the output of pseudorandom number generator to determine it's robustness?

Algorithm for parallel sequences in XML file

2946 byte By Grins777a at 2007-10-1 2:49:40
Any help is greatly appreciated. Problem Description:The goal is to read in an xml file that describes a component sequence and create java objects from the elements. The XML file describes a sequence of responsibilities related to component and some of these sequences have parallel branches ...

How to pass data from type integer to integer Array?

1089 byte By pashah72a at 2007-10-1 2:49:44
HelloI am doing algorithms(bubblesort) in which 'FileReader' class reads from file(numbers.txt). Numbers are read & display but can't do sorting because all numbers are stored in type integer 'int tok'(please see the code). I require numbers to be stored in array so that with the help ...

Need help with Crystal reports and java

378 byte By Gerttya at 2007-10-1 2:51:54
Hi!I need help.I have a report which is created with Crystal report. I want to open/ refresh the report on a button click. My crystal report is using Documentum as a database. I want this task to happen like every day at 00:00.Or on a button click it can just update/refresh the report without ...

AI parameter optimization

488 byte By Brenta at 2007-10-1 3:12:09
Hi all,I'm working on optimizing the parameters for a PID controller. I'm considering using a genetic approach, but with only 3 parameters that are variable, I'm not sure how well this will work. I've done soem gen stuff before, but mostly with large search spaces, so I'm not really ...

Iterating through a BitSet object

328 byte By dfg59a at 2007-10-1 3:12:22
Here's my problem. I need to create an algorithm to iterate the bits in a BitSet object. Basically, the states of the BitSet should look like this:{000}{001}{010}{011}{100}{101}{110}{111}I need this to work for any size BitSet. Thanks in ...

Kohonen Networks

654 byte By Squealsa at 2007-10-1 3:13:29
After researching Kohonen networks online, I've figured out how to train them and such. But if anyone here could help me with my biggest questions, I'd highly appreciate it.1) What are the outputs of the network given an input vector? Is it the position of the winning neuron in the neuron ...

Get a Vector out of Vector containing Vectors

466 byte By CSJakhariaa at 2007-10-1 3:16:38
RequirementI have Vector which contains Vector which again may contain Vectors besides Object.I want to get a Vector containing all the Objects from the the VectorThe prototype of the function may bejava.util.Vector convertMListToSList(java.util.List lstData)By this function we will give Vector ...

System class

104 byte By sameer_aroraa at 2007-10-1 3:25:02
hi alli want to know why the System class cannot be instantiatedthankssameer

i need to parse string from JTextField

273 byte By kaunietissa at 2007-10-1 3:25:22
hi, i'm trying to do search. so i need to parse string from JTextField. There are 3 types of words: words which begins with "+", wors which begins with "-" and simple words. And words between quotes have to be shown like a single token. anyone could help with that?

whats the best way to sort a vector?

215 byte By kbgnata at 2007-10-1 3:30:23
hiI have a vector containing some integers in no particular order. I wish to have them sorted, so was wondering whats the most efficient way of achieving this. code would be very helpful. Thanks

Replacing genetic algorithm with something "smarter"

1060 byte By gilroittoa at 2007-10-1 3:32:08
Hi, currently I'm using a genetic algorithm to find minimas or maximas of certain problem with many different parameters. This works very well when the fit-function executes relatively fast, even for many parameters to explore.But when a fit function takes more than 1 minute or even 15 minutes ...

Shortest Paht First

570 byte By Ambrosea at 2007-10-1 3:32:30
HeyI'm looking for help to implement the above algorthnm in Java GUI. I have six destination points. The user is going to enter a value and that value is to be used for the bases of the algorthnm. The size of the number will decide on that route it will take. I would hope the end product to be ...

where is a good source for text files?

1018 byte By kbgnata at 2007-10-1 3:38:44
HiI've just finished implementing a huffman tree and been testing it out. It seems to be working fine - encoding and decoding results look correct.However, I really want to test this tree out with a larger 'dictionary', so that I can construct a larger tree and check if performance is any ...

big 0 runtimes for different alogrithms

132 byte By cabl3a at 2007-10-1 3:39:21
hey could any of u help me by posting the different big 0 runtimes for different kinds of alogrithmsarrays, loops, etc

big 0 runtimes

145 byte By cabl3a at 2007-10-1 3:39:23
hey whats upcould any of you all please help me by posting different big 0 runtimes for diferent alogrithmsloops, arrays etc

downloading from a list

416 byte By hartmanja at 2007-10-1 3:48:21
I am dealing with a web site that contains a lot of files that are named in sequence. Would it be best to use java to make an algorithm to download them or is there some software that already does the job? For an example, the site might be built like ...

Grayscale Image<Converting from RGBto Grayscale>

2033 byte By alesi05a at 2007-10-1 3:48:24
hi, i am very confusing right now as there are many coding to grayscale filter right now. I need a full code algorithm for RGB to grayscale converter for an Image that has been captured using web camera. I need help in doing the coding and guide doing the grayscale filter..is this the right ...

Sorting vs. database DISTINCT

752 byte By TR1a at 2007-10-1 3:51:03
Hi,The question is what would be more efficient, to apply sorting algoritmor to use a DISTINCT clause.I have a list which must contain only unique values.Values are coming from the database table where each column might containduplications.I have two options and I can't decide which one is ...

create a graph using 2-d array

347 byte By nugstara at 2007-10-1 4:04:04
hiive got a 2-d array ( or just two 1-d arrays if its easier) and i want to draw a graph using their values, there are about 1600 values. Problem is i dont really want to use an applet or have to download more software/packages; i want to ideally use the .swing and.awt and similarAny help ...

Making a fundamental thread progrmaming error I'm sure...

752 byte By JavaJulesa at 2007-10-1 4:04:21
Hi, below is a subclass of a program I am writing. It gives me an error when I try to call the fft_1d method - I know I'm making a fundamental error, but I can't spot it... any help would be greatly appreciate.My code (cut down to the key elements);MAIN CLASS AND METHODS{class ...

lsb steganography

303 byte By confusedgala at 2007-10-1 4:16:41
hi, does anyone have a LSB steganography technique forhiding encrypted text message behind an image? Which library/tool is best to use? Im encrypting a text file using blowfish, and it works. Then i need to hide it behind an image.I would appreciate help from ...

Perfect square

114 byte By pacificwara at 2007-10-1 4:19:28
How do you write code to determine a perfect square for any integer? I understand Math.sqrt();Thanks

decimal to binary conversion program

255 byte By choochoo_88a at 2007-10-1 4:27:27
helloi need to make a program that converts a decimal number to a binary number. can someone please help me. could u please either give me the program in simple java, or give me an easy to use and understand algorithm?thanks...

equal

399 byte By leno_cinaedusa at 2007-10-1 4:28:25
I am trying to come up with an algorithm that accomplishes the following:we are given an int array. we want to split it up into n number of parts such that each part is as equal to each other as possible. like if the array is {1,1,2,11, 13, 100}and we want to split it into 4, we get {4, 11, 13, ...

Efficient find nth object with a given characteristic

2892 byte By iwoa at 2007-10-1 4:34:03
I am trying to develop an efficient method of finding the nth object in an array with a given characteristic.Say, for instance, that my objects are either visible or invisible. If I need to find the nth visible item, I'm currently using code like the followingprivate MyObject[] myArray;public ...

Stop crashing when entering a letter when Int is expected?

740 byte By Ultimar235a at 2007-10-1 4:37:46
Might be in wrong forum so i apologise if so. Im new to java but i was wondering if anyone could tell me how to stop a program from crashing if u say enter 'j' instead of an Integer?I figured it would have something to do with Try, Catch and Final. But the tutorial didnt have any examples. So ...

Code completion algorithms

163 byte By chamalsla at 2007-10-1 4:49:23
Hi,I want to create an IDE for Java language. Are there any algorithms to make code completion efficient in an IDE.Thanks a lot,Chamal.

Simulating a Human Heart Beat in Java

350 byte By eoiny_oneilla at 2007-10-1 4:54:03
Hi,I was just wondering if someone could help me as i have to find a way of simulating the human heart beating using Java, i have to do this as part of my final year project and if i cant do this I am in Big Trouble for the rest of the year.Any help from anybody would be much obliged,Thank ...

video codec

659 byte By Lord_of_the_chaosa at 2007-10-1 4:56:22
I'm writing a new video codec. Just to see what can I develop just by me.I implemented a spider. part of file descriptordelta framessome type of quantitizationcurrent compressor isn't optimalized for high locality, but it would be somewhat easy to do. I have curently implemented a motion ...

sorting a linkedlist object, not quite using the java.util.LinkedList class

2239 byte By playwithmybanana at 2007-10-1 5:07:02
hi there, i'm having major issues wrapping my mind around how to make this work. This was my attempt at sorting a list of objects according to one of the attributes within the object. I've been working on this for 3 hours and it's killing my brain at this point. Here's what I want it to do: ...

Genetic Algorithm Problem

1420 byte By toyotaa at 2007-10-1 5:14:41
Hi,I am currently writing a genetic algorithm program in Java for my final year project. I am finding some difficulties and was wondering if anyone out there might be able to help?br>I am trying to optimise 2 objectives, Objective X and Objective Y. Values of both objectives are stored in ...

converting several decimals to one string

884 byte By choochoo_88a at 2007-10-1 5:15:26
im making a program that converts a decimal number to a binary number, using the divide by 2 method and outputting the remainder. this is what i have so far:public class decimal{ static int biDigit; public static void main (String []args){for (; ;){decimal();}//end of for }//end of main method ...

How can i convert a double from an IBM 370 format

71 byte By guenther_ka at 2007-10-1 5:21:14
How can i convert a double from IBM 370 format to a Java double?