I can't get myhead around this one. I have a file of information, from which I need to pick relevant bits. And put these relevant bits into a datebase. =====xxxxx xxx xxx=======REF xxxxxxxxxxxxxxxxxxxxxHEADER xxxxxxxxxxxxxxxxxxxSOURCE xxxxxxxxxxxxxxxxxxAUTHOR xxxxxxxxxxxxxxxx xxxxx ...
Could you please send a program andsource code of program that using bellman ford algorithym? I used in my project about the network traffic Thank youponnak2000@yahoo.comYour sincerelyPhongsakorn
1047 byte By
kablaira at 2007-10-2 9:17:52
This is fairly simple but I'm not sure what a "good" approach is. Basically I need to track how many times a user has performed an action over the last hour and last eight hours. I'll receive a notification of some sort when they perform this action and could get the current time, but I'm ...
HiI have one package with one method and I want to refer to that method like this:myPackage.myClass.myMethod();For this I have to declare my method as static. My problem is if I declare the method static I will have just one instance of that method in the page. If I pass a String to the method ...
Hi! I am currently working on a sequence alignment program which must be able to produce the optimal alignment as well as the traceback algorithm. I have finished doing the code and was able to compiled without any errors. However, my program is only doing half its job as it is not giving me ...
How may I implement Strassen's algorithm for square matrix with more than 2 rows and 2 columns? Example for 16 rows and 16 columns matrix an so on.
257 byte By
problema at 2007-10-2 9:24:51
Need help to a newcomer:1.Write a program that reads in three whole numbers and outputs the average of the three numbers2.Write a program that converts degrees Celsius to Fahrenheit using the formula degreesC = 5(degreesF ?32) /9
When I'm working with java.math.BigDecimal, and I want to divide, lets say, 3 over 567, it returns 0, or 0.0I've found out that this problem can be solved by manually entering the desired scale of the result, but the program should know automatically what scale it ought to use. Does anyone ...
Good evening guys!I would like to ask you sthg as far as priority queues are concerned.When we want to add a new node in a priority queue,do we start checking the root first?Or do we add the node in a leaf node?e.g. we have the tree root->19 left child->20right ...
Hi guys,an unbalanced AVL tree is a simple binary search tree?Thanks,in advance!
Hi guys,This is my post in java forum after 2 years. :)I've come across this problem of writing a program which solves this problem:This is a notepad application and I'm supposed to write a program for Word wrap problem:The width of notepad is fixed (call it y character), there's a lits of n ...
3819 byte By
K_Ghosta at 2007-10-2 9:50:13
Hi , everyone.Could somebody explain why the second selection sort algorithm use much less time of copies but the time consumed is almost the same as the first one? I think it should be faster, is there something wrong with my way for testing?Here is a testing result for sorting 10000 ...
Hello.I am trying to find a graph algorithm (by graph I mean nodes interconnected to each other,not the sketch of a function).This algorithm should yield the route that passes from as many nodes of the graph as possible,though it is forbidden to step on a node twice,and then ends back to the ...
Hi all, I am sure this question may turn out to be a trivial one for some, but not to me :). I will try to represent the problem in the following example:There are a group of 'marbles', distributed over a line of length 100cm. The total number of the marbles, their distribution, distance from ...
I don't know if this is the correct forum for my question.My application has to assign an appointment with a doctor. But there are many users (patients) compeating for this resource. I thought of blocking this resource until I collect all the patient information, but I'm not quite sure that ...
984 byte By
bonomela at 2007-10-2 9:54:06
Hello everybody,I'm fairly new to Java, and my first real project which also implements jsp was going very well, until...I had to sort an ArrayList, which holds object with only 2 attributes, a String uid, and an int diff.I want to sort this ArrayList in ascending order by int diff.So ...
Hi for all............Please ,I want from you to explain Polyphace Balanced Merge SortHelp Help Help Help Help Help Help Help Help Help Help Help HelpNote: I hope to give detailed explainationThanks FoRrVeR
I got the following code:VectorVector<String> v = new Vector<String>();for (int i = 0; i < 10000; ++i) // For example{v.add(str1 + str2 + str3);}where st1, str2 and str3 are strings that change through every iteration, so they can't be added from before.The adding line is quite ...
744 byte By
toyrunra at 2007-10-2 10:24:43
Hello,The problem at hand is the following. I need to run 1 million search and return back only top 100 scores. I do not wish to store all million scores, sort them and only return top 100. I'd like to maintain a "list" of top 100 scores. As new search produces a score, I'd like to very ...
959 byte By
zcox522a at 2007-10-2 10:29:05
Hi all you algorithm gurus - I'm looking for ideas for an algorithm to solve the following problem. It's specifically meant to "spread out" or "declutter" the overlapping vertices in a graph visualization system, but I'll state it in more general terms.In a rectangular area of the screen ...
Hello wondering if anybody can advise me on how to get started with this ?I am starting a project where using Steganography as digital watermarking tool to insert text into an image.I am using the quantization index modulation method with the colt maths package to implement the equations ...
2078 byte By
Cobbweba at 2007-10-2 10:31:10
Hello. I'm doing an insersion sort for an array of pet's in a store. Im running into two problems. My first problems is im trying to use the compareTo() to compare the name of each of these pets. Im running into a null pointer exception but dont know what to do about that or why im getting ...
Hello,does anyone know about libraries or methods to evalutate a random sequence for weeknesses in the sequence? E.g. java.util.Random is a far from perfect pseudo random generator, and such a method might be able to detect that.Gil
428 byte By
SKS7a at 2007-10-2 10:36:37
Hi there,I am a college student. I am currently working on a project that involves me programming the Dijkstra's algorithm and then producing a GUI that will show this algorithm running on a pre-defined graph.I have looked on the web and have found code but I still don't know where to begin. ...
Hi guys,When we want to initiliase an array P which consists of N positions,do we have to initilaise all the positions in order to point to NULL?This demands O(n) time although we may not use all the positions.Thanks,in advance!
I am trying to avoid using busy wait when, after opening a child thread's input stream, I wait for it it to be ready before I start reading from it. A segment of the code follows:BufferedReader reader=new BufferedReader(new InputStreamReader(child.getInputStream()));while (true) {while ...
666 byte By
msd59a at 2007-10-2 10:43:21
I'm trying to write a method that finds the square root of a number using recursion. So far i have the following:public double rootMeth(double a) {if (a < = 1)return a;elsereturn a / rootMeth(a-2);}I know this is not right, but it does work for a few numbers, if you can help it would be ...
804 byte By
6666a at 2007-10-2 10:43:24
hiIf I run the following Queryselect P.ECMSKU ITEM_ID, P.ECMLDS ITEM_TITLE, 'ESH' ITEM_TYPEfrom ECMMST PwhereP.ECMSTS = 'A'AND UPPER(P.ECMLDS) LIKE UPPER('%?%');Result:suppose if I pass " yamaha uprirht piano"The result set contain so many records.I want to get reuslt like thisfirst ...
hi there..what is the best or most efficient algorithm for separating a string into words? the string contains a sentences and phrases, and i would like to have them separated into words..how can i do this manually? without using a native java method?
477 byte By
Eclipsea at 2007-10-2 10:45:54
I am currrently working on a project to solve an 'advanced' TSP problem using ACO.I have been unable to find any source code as yet for an implementation of ACO using Java. I intend to use some existing free to use code and build on top of this the features I need to solve the new TSP ...
499 byte By
herrena at 2007-10-2 10:46:04
I am currently looking for one or more algorithms in detecting a stable drift in the voltage/potential of a electrical measure device. I have googled a bit but I am having problems finding something relevant.I must admit that drift is a relative new term for me, so there are perhaps some ...
Hi all,was wondering if there was a string version of the switch method where instead of requiring an int it asks for a string. I got a project which at the moment uses a lot o ifs and i wanted a better method instead. Any help? The switch method where you have switch (score){case 0: ...
132 byte By
hata at 2007-10-2 10:55:56
how can i capture and save audio clips with a filename of user's choice and any no. of files that the user wants using java.
159 byte By
hata at 2007-10-2 10:56:06
i want to perform sampling of the audio signal and then employ DFT on that signal in java plz anybody hurry and provide me the same as soon as possible.
11862 byte By
Jason102a at 2007-10-2 10:59:10
Hi there,I've been working on this radical simplifier program that simplifies square roots. There is one point in the program where the code checks to see if the user entered a pure square root that is odd (9,25,49,81 etc), yet in order to properly test it, I need to somehow implement a prime ...
723 byte By
rak78a at 2007-10-2 11:01:35
Hi,I need to optimize a searching algorithm. We have a large pool of flat text files (unicode format) having various lines in each file. Every single file represents data about some microchip. Every piece of data in a line is separated with a space. Each line contains 11 fields and we mostly ...
Hi allI am sure this error would have been posted many number of times, but I would really appreciate if someone could help me with my problem. I am working on reading data from a .zip file, which in it has ~5GB data. All I am performing is a read operation through the piece of code specified ...
302 byte By
Cobbweba at 2007-10-2 11:05:56
I'm looking for Algorithms that will solve sudoku puzzles. Im trying to write my own program for this to get ready for a compition. Would anyone know where to find these algorithms or ways to slove sudoku puzzles using a system every time? Any suggestions are helpfull thank you, ...
I came across this link and thought it would be useful to my fellow programmers: http://en.wikipedia.org/wiki/List_of_algorithms
HiI am trying to make an equalizer for my mp3 player. I found a fft algorithm to find the frequency spectrum for 4096 long double [][] array in one of the forums but the function does not work properly. I know because I compare its results with the math lab抯 fft function. Also when I compare ...
739 byte By
Deepesha at 2007-10-2 11:31:04
I m deepesh deomurari. I m seeking for a perfect algorithm for creation of my project regarding natural language processing based questionare. My project is based on rating analysis. where questions is asked from generalization to specialization, And provide Rating of Main Subject (Such as ...
549 byte By
Pharaosa at 2007-10-2 11:36:31
Hi every1,hmm am actually new to the forum and am actually lookin 4 help. am currently developing a neural network(backprop) to classify certain insects according to a number of characteristics. am actually having some problems to create tha pattern file, how do i create that file to match a ...
549 byte By
Pharaosa at 2007-10-2 11:36:33
Hi every1,hmm am actually new to the forum and am actually lookin 4 help. am currently developing a neural network(backprop) to classify certain insects according to a number of characteristics. am actually having some problems to create tha pattern file, how do i create that file to match a ...
Trying to improve my Java, I'm working through the book:"Schaum's Outlines Data Structures With Java", as just private study for hobby reasons.I'm working through the section on Recursion and I have come to this Question:"Write and test a recursive function that returns the maximum among the ...
Hi everyone. I have to create a Texas Holdem Poker Game in Java for a college project. I am happy with my GUI's but my immediate problem is dealing the cards. I am undecided as to how to do this.Is it possible to place the pictures of all 52 cards into an array and then randomly generate 2 ...
i'm writing an Axis & Allies program. is it realistic to allow a transport to take out a battleship? seems wonky. also, what's up with those funky names in asia?
502 byte By
relmoa at 2007-10-2 11:47:57
Hi,I am trying to write a program that will convert mp3 or wav file to midi. I know that the result will be approximate but I think it will be a good experience since i am quite new in java.From the information I have gathered so far I know that I need to perform a fft algorithm on the mp3/wav ...
1833 byte By
iamiqrka at 2007-10-2 11:55:13
Interesting problem came up at work. I'm thinking there is a better-than-NP solution.Here's the problem: Given a set of goal sets, create all goal sets from atoms minimizing atom joins.For example,Goal sets:1) AB2) ABCStarting with A, B, C atoms:1) Join A and B [solves 1]2) Join {A,B} and C ...
hi,I need the method in java for the deviation standard, someone know it?thanks
354 byte By
cakea at 2007-10-2 11:59:18
HiHow do you convert a negative BigInteger into a positive BigInteger? I know how to do it with in Integer:if (y< 0){ y = -(y);}But how would you do the same type of operation with a BigInteger?Many thanks, ...