Hi,I am developing a cache for objects. I have a number of "storages" that need a cache. These "storages" are used inequaly much, and therefore they all use the same cache-"pool", a common cache. In order to be able to do this I have to distinguish the objects from the different "storages", and ...
Hello experts,I have the following problem: Given a rectilinear polygon (without interior holes), find the minimum number of rectangles covering it whithout overlapping. For example, the below polygon can be divided into 3 rectangles. The question is how to do it efficiently?************* ...
689 byte By
owsa at 2007-9-29 3:51:48
Hi,im working on a project right now.Im suppose to solve a power systems with matrices.I have to plot a convergence graph for this project,can anyone help on the plotting of a convergence graph?Anyone familiar with writing programs for solving electrical power systems? Like newton rahpson ...
Hello,I'm creating a school project, the game connect 4, or four in a row. I have everything done, except for where the program checks wether the lines are 4 in a row or not. Can anyone help? Here's the code:import java.awt.*;import java.applet.*;import java.awt.event.*;public class Projecto2 ...
Hi, Is any one knows how to delete a row or column from a matrix of any number of rows and columns. Thanks.
Hi all,Wanted to find out is this is Permutations?I have 5 Dice (Die) and I want to print out all possible combinations / Permutations for the 5 Dice and their total.i.e. 1 2 3 4 5 sum= 156 6 6 6 6 sum= 30Anybody know how I can do this?Many ...
Hi all,Wanted to find out is this is Permutations?I have 5 Dice (Die) and I want to print out all possible combinations / Permutations for the 5 Dice and their total.i.e. 1 2 3 4 5 sum= 156 6 6 6 6 sum= 30Anybody know how I can do this?Many ...
Hi, does anyone know other algorithm forums, not only for the question of implementing the algorithm in Java but other language such as C++ and the questions about the algorithm? Thanks
I have a question: Is the mullet really back in style again? I'm going to get my hair cut today and I can't decide whether to get a really nice american-football-player-mullet or just the usual "just trim the ends". This is urgent! Please help!Torsten B齝kling
I've been looking crazy over the internet and in the forums, but haven't found any Hashtable implementation that stores on disc. Anyone know any good library for that?Gil
671 byte By
hfs1981a at 2007-9-29 4:27:15
I need help to define the best approach to avoid connection jam.I am writing some classes that read xml file, save to local disk, parse its contents, send receiving notification & insert the contents in oracle database. The xml file is sent over a network and I have a listener (servlet). ...
ok I'm trying to get text from a JTextrea into a Microsoft Access database through the JDBC-ODBC driver.the problem is if I have multiple lines of text in a JTextArea, how do I save them to a plain string. I was thinking maybe converting the CR or CR+LF whatever it is to a '\n', or if ...
Hello all,Can anyone know how to find maximim number from a Vector.This vector contains numbers as vector objects.Thanks in advance.
HiDoes anybody know the java command, that redirects the output of an algorithm into a new file window.thanks
Here comes another of my save memory/optimisation questions.I have a table on disc, and the table width is variable, say 100-1000 bytes. My current solution is to use the maximum size as a fixed size so I can simply access the right row in the table by an offset to the file with the table. But ...
91 byte By
RanjanNa at 2007-9-29 5:07:35
we've one cube. From six straight cut we want 125 cubes. is it possible?if yes how?
228 byte By
aim_2ua at 2007-9-29 5:13:14
Hi, I am currently doing a degree project that I need a Kleinberg API (one that has finds for a root set hubs and authopritites) for the code I wrote takes a long time to process .can any body help me please
Hello all,Let us assume n = 2. I want to print like this:0 00 11 01 1Let us assume n = 3. I want to print like this:0 0 00 0 10 1 00 1 11 0 01 0 11 1 01 1 1In the same way I want to print for any value of "n". Is there any algorithm for this? thanks and ...
Hello all,Let us assume n = 2. I want to print like this:0 00 11 01 1Let us assume n = 3. I want to print like this:0 0 00 0 10 1 00 1 11 0 01 0 11 1 01 1 1In the same way I want to print for any value of "n". Is there any algorithm for this? thanks and ...
300 byte By
aim_2ua at 2007-9-29 5:14:30
I have a database of links I use a statment to read of them pass them to a URL and read the site to extract links from there, if it the URL is broken it takes me 10 minutes to go to the next one, I have 200 odd links any help as to speed this up...it took me a day to finish up the ...
288 byte By
Mike__a at 2007-9-29 5:18:44
Hello,I am looking for some easy way to code a string by using the MD5 algorithm - is there any library that contains solution for this problem? If not, is there any simple (f.e pseudo-code) description of this algorithm?I would be very grateful for any answer,Mike J
69 byte By
lstigera at 2007-9-29 5:25:10
pray for the java file implements LZRW Algorithms,very thanks.
Hi, I am doing a project in which I hope to build a database on the one of 3 servers and in fact I will build 3 databases totally. When I send keys and datas to server from client, I hope to put them into databases equally, i.e. the amount of data on every server are as equal as possible. Now, ...
259 byte By
owsa at 2007-9-29 5:35:11
Hi, i need help in dealing with complex numbers;eg R=0.012; zL=0.1; Yc=0.01;both jzL and jYc are imag numbers and i need to calculate 1/(R+zL)+ (Yc/2)How do i go about writing a program for that?pls help!!!thxk
4544 byte By
S.Y.Leea at 2007-9-29 5:35:28
public class Hungarian {Hungarian ( int[][] matrix ){//input a n by n matrix}private void initial(){//some initial process}public int getMin(){//main ideainitial();rowSubtract();columnSubtract();while( minCover() < this.size ){modify();}return findSolution();}public int getMax(){//main ...
608 byte By
Dave275a at 2007-9-29 5:36:13
Hi, i wonder if you can helpim looking for any information on algorithms to create a sports league schudleBasically looking forthe following featuresx teams play each other y times(and no more)each week every team is involved in 1 match and no moreive had a look for existing algorithms via a ...
One of my current projects is to implement a Embedded pure java database with a smaill subset of SQL. Since I estimate it will take me at least 400 man hours (based on my intial unfinished attempt) to build something robust and usable, I thought I'd ask my fellow java folks for suggestions. ...
Hi,Following is what I have been doing:THE FOLLOWING STEPS ARE DONE PERIODICALLY (like every 30 seconds):Get data from a database above a certain time stamp in a resultsetSelect some rows based on ceratin values of certain columsn in the resultsetChange numbers to words and words to numbers in ...
196 byte By
anna_18a at 2007-9-29 5:47:41
I have a list of data that are float value.Example {0.0, 0.87, 0.58, 0.87, 0.59, 0.87, 1.0}The mode is 0.87 (appear 3 times)What is the algorithm to get the mode value?
366 byte By
feleexa at 2007-9-29 5:56:23
Hey !I need a Fast Fourier Function for Java Project that I'm currently doing...I have a graph with 2048 dataspots (array of doubles) and gaussian noise. I want to filter that with a FFT... Does anyone have java code that could help me ? Or does anyone know a place in the net where I can find ...
I am an MSc conversion student who is struggling with the initial stages of coding his Association Rule Mining dissertation project.I have a TreeNode class, which is in the process of being written. The class is designed to create a tree that stores all possible combinations of a Vector ...
3699 byte By
oubo_a at 2007-9-29 6:01:32
> > Can someone tell me how to fix this method which> uses> > preorder and inorder listing of data to construct a> > tree recursively. The inorder listing of data is> > entered the first time the method is called. I need> > someway to store the value in the left ...
679 byte By
silkma at 2007-9-29 6:04:18
just need some advice on whether this is a good or pointlessmethod of helping to secure stored, hashed, passwords:instead of just hashing the password to get 256bit result, we:say:maximum password length = 15say:max length of generated string length = 256 (for example)we:pad password to 15 with ...
Does anyone want to try and convert this in to Java. I've done it but the return values I get back are different from those in Winkler's science paper and I just can't understand it. I looked over the code 5 times now changing bits a pieces to try an get it to work ...
Hello all.I am in the process of writing a _J2ME_ client for a properitary protocol transmitting stock data.Simply put my problem is that I need to get the base-36 (0-9AZ) representation of a 64 bit _unsigned_ number (stored in a byte[8]). To be more elaborate, I am encrypting a string using ...
140 byte By
PeteBela at 2007-9-29 6:16:59
I'm looking for the Source code to perform a Shepard Bivariate Interpolation in 2D. Anyone know where I can find it?Thanks...
if i were to use a painter's algorithm for sorting 3d polygons, which would be the better choice? quicksort or mergesort?
1216 byte By
kpfogeya at 2007-9-29 6:36:52
heres the code i have so far. i am passing in a NevWord object called item in the method. im trying to insert nodes into an initially empty linked list sorted. each node contains a NevWord object and a pointer to the next node. the getWord method returns the word i am going to sorth with upon ...
1944 byte By
Masom17a at 2007-9-29 6:37:26
Hi all,i try to implement a recursive Method, that will traverse a Tree (no binary tree). The tree is the representation of an XML Document that was parsed with the JDOM-Api (Sax-Parser)I want to step through all nodes and all childs of this nodes recursivly to find an element with a special ...
446 byte By
silkma at 2007-9-29 6:39:12
hello, i need to calculate a checksum on N rows return from a database and i am wondering what the best method to do this. my thoughts are: 1) hash data as it comes out, store hash in memory, add hash stringstogether (N hash strings) and then hash that. 2) write output to a file then calculate ...
239 byte By
PeteBela at 2007-9-29 6:46:52
Actually my program does a Delaunay triangulation over 10 000 points in about 5 minutes. I would like it to be more efficient. Anyone can tell me where I can find the source code of an efficient Delaunay triangulation.Thanks.
I need a few algorithms for generating statistical table entries that a person might find in a textbook.First, I need an algorithm for generating table entries for a student's t table (ie. Upper critical values of Student's t distribution with r degrees of freedom).Second, I need an algorithm ...
1776 byte By
chez_moa at 2007-9-29 7:00:03
Hi I'm trying to write a method that takes an array of unordered ints and an index in the array, and returns the index of the next highest integer in the array or if there is no higher value returns the original index.e.g. the array is { 1, 2, 3, 4, 5 } and the index is 2 (value 3) -> ...
17616 byte By
owsa at 2007-9-29 7:06:20
Hi i have written a program and i had difficulty in breaking the program into smaller routines!I have tried but i end up with many errors such as my end results did not tally with results before the routines were implemented.PLease help! /* Example 10.6 Pg 347 from Bergen.Demonstration of ...
Hi,I am looking for a good implementation of a cache for objectswith an expiration algorithm.I have found : http://www.vipan.com/htdocs/cachehelp.htmlDoes any one found something better than this ?RegardsChris
What is algorithm for sinus?so if I would like to count sin 3= Math.sin would lead just to native method so no learning from source files.
Dear All,Is it generally faster to iterate through an array of objects as compared to a Hashmap? Thanks for any advice.
123 byte By
RanjanNa at 2007-9-29 7:18:55
hi i need to implement a method which increments date by one month!!!any efficient waythanx in advance
388 byte By
rkippena at 2007-9-29 7:25:09
Each group of 7 *'s represents a toothpick. Together, the toothpicks form a garbage container. Move two toothpicks to make the garbage "G" outside of the container, but the new garbage container must be identical in shape as the one shown below.***********G*** ...
507 byte By
rkippena at 2007-9-29 7:25:24
Given the following (2 lines that touch and are perpendicular), draw 3 more lines to make a total of 5 triangles. (Note: triangles cannot be double counted, so a big triangle that is made up of 2 smaller triangles only counts for 2 ...