How JVM represents NULL internally

231 byte By Spider1a at 2007-10-2 6:26:34
I am curious to know how JVM represents a Null internally.What would be the bit pattern.?Can some one give information about this. I m trying to map null value of java to some legacy database null value.

Minimize String Puzzle

644 byte By DeltaCodera at 2007-10-2 6:31:16
I am trying to write an algorithm to solve this puzzle:The factory gets string in 18inch and 36inch sections. The customer can order 1 to 15 sections of string with each section greater than 0inch and less than 36inch. The factory want to minimize the number of 18inch and 36inch sections used ...

Divide and Conquer

364 byte By mdorison@a at 2007-10-2 6:39:16
I am trying to write an O(n) divide and conquer algorithm to search for an integer in a n*n sorted matrix (numbers in each row (column) are ascending) and output its position in the matrix if it is found. I don't have a complete understanding of the divide and conquer method so if anyone could ...

Creating a java daemon application

249 byte By spiritedNorksa at 2007-10-2 6:40:47
Hi guys.. is it possible to implement/create a java application that will act like a daemon application?.. Basically, im going to use this stuff in linux OS and i want it to be as daemonize as possible... Hoping to hear some responds:)

Expression Template Generator

369 byte By Kristof_De_Saegera at 2007-10-2 6:41:43
Hello,I'm trying to find a way to automatically generate templated expressions that list all possible combinations of brackets around mathematical expressions. So e.g. if you have 3 numbers, it would generate something like (A . B . C) ,A . (B . C) , (A . B) . C and so on for a variable number ...

Number combinations

770 byte By Kedara at 2007-10-2 6:50:03
Hello Everyone, I am facing lots of problem with generating number combinations(without repeat). I did not find a suitable algorithm online, so that i can convert that into Java code. Here is what i wantFor example,if n=3it shud generate123121323123for n=5it shud ...

Help with my work

131 byte By scienceinfoa at 2007-10-2 6:50:06
Data structure / Algorithms work, very urgent, big help needed ! Can someone help?Email / MSN: domainchan@hotmail.com

Use of Searching Algorithm

406 byte By pocniba at 2007-10-2 6:54:35
I am trying to write a program that will have a database of Strings stored in a .dat file that will allow the end-user to search for a specific substring within the file. ie. If one of the Strings stored in the file was How to Implement an Array and the user searched for implementing arrays the ...

sorting 3 dirernt arrays

1867 byte By smithboba at 2007-10-2 6:55:25
i need to sort one array but i need the other arrays that corospond with that array here is the code so farpublic static void main(String[] args) {String name[]=new String[20];int age[]=new int[20];float gpa[]=new float[20];String output[]=new String[20];float tmp;for(int ...

path planning by D star

282 byte By tiandaochouqina at 2007-10-2 6:58:26
hi, now there are many method for path planning,as A*,D*,and dijkstra and so on.when the environment is unknown or partially known,the best way is D star.are there some people interested in D*,and already simulate the algorithm? expect to communicate with you:)

Problems Implementing Backpropagation

12046 byte By AlexanderTrostorffFincha at 2007-10-2 6:58:34
Hi. I'm having a good deal of difficulty implementing the backpropagation learning algorithm for articial neural networks. Errors seem to be converging toward plus or minus .5 instead of 0. One of my problems is that different sources say to do different things, so if someone could look over ...

string problem...!!!!

326 byte By shadowssssa at 2007-10-2 6:58:38
hmm...how 2 separate the contain in the document file that ended with dot into lines.lets say, in this document we have...halo how r u. I'm fine. tq.after using some coding become like this...halo how r u.I'm fine.tq.i hope u all can help me to solve this ...

Binary

383 byte By Rajalaa at 2007-10-2 7:03:54
I would like to read a file and store the data in binary format in a string.So that i can later insert it into the database - MySQLI am able to read the file into a byte array.How do i store the byte[] array into the string ?byte[] buf = new byte[100]// .... read file ...String BinString = new ...

Adler32 for char's

5047 byte By gilroittoa at 2007-10-2 7:09:17
in the example code for Adler32 from: http://java.sun.com/docs/books/tutorial/essential/io/example/Adler32.javathe update() function operates on byte's./** BASE is the largest prime number smaller than 65536* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1*/private ...

Help with Java Applet Design

1304 byte By you_zia at 2007-10-2 7:14:59
Hi,I'm a uni student and I've had some programming experience in Java, although sadly a bit lacking in the area of Java Applets.Recently I've being involved in a project where some tests are ran a number of times and a Data Aquisition System is used to transfer the number of cycles the test ...

how i can to implement (Balanced Merge Sort) algorithm?

926 byte By balanceda at 2007-10-2 7:17:27
轻俞倾 卺磉?Hello for all I want to make Balanced Merge Sort algorithm in my project ,but i face many problems as,I can't make this algorithmand , i don't know ,how i can to establish files to write and read from it ..Example about this algorithm for members who don't know about BMSsuppose that ...

how i can to implement (Balanced Merge Sort) algorithm?

1300 byte By balanceda at 2007-10-2 7:17:32
轻俞倾 卺磉?Hello for all I want to make Balanced Merge Sort algorithm in my project ,but i face many problems as,I can't make this algorithmand , i don't know ,how i can to establish files to write and read from it ..Example about this algorithm for members who don't know about BMSsuppose that ...

Placing N number of point on surface of a sphere

153 byte By bestProa at 2007-10-2 7:18:57
Could you please let me know if anyone knows about placing N number of points on surface of a sphere where they must be evenly distributed. Thanx.

Question related to List

229 byte By g_p_javaa at 2007-10-2 7:20:58
Hi guys,if we want to implement a catalog by using a simple list(every node has one pointer),what are we going to lose or gain by using only one pointer which points to the head of the list?Thanks,in advance!

csc() sec() cot()

141 byte By balanceda at 2007-10-2 7:22:51
Please help me ,how i can to program these functions 1-csc()2-sec()3-cot()all thanks for all

Fit n rectangles (images) in another rectangle (window) changing scale...

842 byte By joseprioa at 2007-10-2 7:23:03
I'm developing a image viewing program, and I would like to offer the possibility to show all images in a directory as a single window (no scrolling) mosaic, wasting as little space as possible, and in the case the images cannot fit, reduce the scale of all images. In concept, is really ...

Splitting requests into buckets

480 byte By mhdevid9a at 2007-10-2 7:23:57
Hi,I have a need to split requests into buckets based on assigned percentages.For example 60% of the users fall into Bucket A and 20 % fall into bucket B and the remaining into Bucket C.The there is no fixed limit on the requests.Once the number of buckets have been decided the % could change ...

functional dependeny of a table attributes

692 byte By Servant@AKa at 2007-10-2 7:25:49
Hi guys,I need a method to check all the functional dependency in a given table .for an example:r1r22525310410532here r2 depends on r1 because when r1 is 2, r2 is always 5 ,but r1 does not depended on r2 because when r2 is 10,r1 have two different values,which is 3 and 4 i guess i need to find ...

Shortest job first process scheduling need urgently

513 byte By Tanzeela at 2007-10-2 7:26:34
need Shortest Job firs(preemptive and non premptive) Process Sheduling AlgorithmI want to make a Simulation for SJFin that algo iwant to calculate for each process(the process are just simple)Through PutTurnAround timewaiting TimeCompeletion time of each processArrival of each processlike for ...

functional dependeny algorithm (repost)

487 byte By Servant@AKa at 2007-10-2 7:27:25
hi,i wrote a method to check functional dependency between two columns of a given table...for example i found these dependences :C->A (A depends on C)B->AA->BB->CC->Bnow from above relations i need to deduce the final relations :C→ABC→Awhich reflect the exact ...

Help with Java assert statement

2107 byte By mukul.objecta at 2007-10-2 7:30:41
Hi all ,The following is the discussion given in "JAVA LANGUAGE SPECIFICATION " at the section The assert statement(14.10)It says about the circularity to be treated as special condition in assert.Tried to execute the code , encountering a compile time error at// assert enabled =true;following ...

Java Job Scheduling Software

345 byte By phadnis_rahul1a at 2007-10-2 7:34:48
I am working on a project, in which I need to schedule jobs on a different machines.I am wondering if somebody could provide me links for algorithms for doing this efficiently.I have already used google to search for Job Scheduling software without any success.Any responses/pointers would be ...

Mapping Long values to Integer values ?

570 byte By boran_bloka at 2007-10-2 7:39:21
Hi I have a task I run in the back-end (a file download) and I'd like to display a progressbar. the progressbar however only accepts ints as max value and current value. now I was wondering, what would be the best way (and preferrably also the most performant way) to map the Long values to Int ...

Graphics Equations

491 byte By Marius311a at 2007-10-2 7:42:54
I'm making a grapher which graphs equations (currently) by starting as some x, and going by some increment, figuring out the y and drawing a line to the new point. Now in the interest of speed I need to use as few control points (x increments) as possible. How could I intuitivley use more ...

parsing text file

1846 byte By mehuld121a at 2007-10-2 7:46:34
I have a text file (and for now it is not going to be in xml format) which looks like:System{Project{Instance{domain1{Server{AppServerHost = "host"AppServerPort = 80NetricsHost = "host"NetricsPort = 5051JassFileName = "jaas_client.conf"}Repository{# possible and supported values: shared | ...

Prime Numbers Again

1737 byte By Leos-Kata at 2007-10-2 7:52:10
Like JimBo, I'm also having a problem with finding prime numbers. It keeps giving me the error message (PrimalityTester.java:46: missing return statement) right by my primetest method. I'm new to java, so you will notice that the code is simplistic. I would appreciate any suggestions or ...

Parsing text from a website

2296 byte By Squonka at 2007-10-2 7:53:52
I'm still boning up on my Java skills, and I'm wondering if you guys might have any ideas as to an issue I'm having with parsing text from websites. I'm designing a program to help me with a monthly chore, which will pull down information from various local venue websites and then store ...

SHAPE RECOGNITION USING JAI

501 byte By Ciphera at 2007-10-2 7:56:34
hi all, what I need is simple, though I have not been able to locate it on net...I need to be able to identify triangles, squares, and circles in black n white images picked up from a 'not so good' webcam. I wrote out an algo or two of my own in JAI, but none of them is very dependable... can ...

long to byte array and back

645 byte By rein8a at 2007-10-2 8:01:13
I'm converting a long to a byte array for sending over a network like this:long l = somevalue;byte [] b = new byte[4];for(int i= 0; i < 4; i++){b[3-i] = (byte)(l >>> (i * 8));}and then want to get my long back but I can't seem to get it to work. I've tried several options but ...

regression through zero

9003 byte By aliasa at 2007-10-2 8:04:29
Is anyone aware of (or has already developed) source code that will fit a least-squares regression of specified order, AND can be forced through zero. I found the following program through Google that works really well but I'm unsure of how to modify it in a way that allows me to force the ...

Multilevel feed back queue process scheduling

205 byte By Tanzeela at 2007-10-2 8:09:06
Any body help me to devolpe Multilevel feed back queue process scheduling Algorithm or send me link for any help materiali am thankfull to him or herthanxs in advance to helpers

Differentiate any function

11039 byte By parza at 2007-10-2 8:11:27
I am trying to construct some simple code to find the derivative for any function. So far I have come up with what can be read below. However, I ran into some problems when the expression is growing like nothing else. Does anyone have suggestions of simple ways to simplify the function after or ...

choosing the right categorie

887 byte By jochima at 2007-10-2 8:19:29
I have a serie of "categories" every categorie is a set of N collections.for example (a categorie consists of a range of years and a range of zip-codes)categorie1 : 1910-1960 , 10000-12060categorie2 : 1920-1955, 11050-11090categorie3 : 1956-2005, 77000-77001as you can see some categories fall ...

unique random alpha num string

253 byte By ramanbulleta at 2007-10-2 8:20:49
Hi Guys, I have a unique question.I need to generate a unique random Alpha Num string.I cannot use 0,5,8 and 0,S,B in the generated output string.The string generated should be no more than length 7 maxPls help.

problems with List<Card> and sorting

5820 byte By cakea at 2007-10-2 8:21:14
HiI am building a card game, what I would like to do from both my Deck and Hand classes is be able to reorder the cards, by suit and rank. However, i am using a List's and though this works great with adding, removing etc however sorting seems to raise issues!Is a list really the best thing to ...

need help for string

420 byte By shadowssssa at 2007-10-2 8:24:46
i face a problem where i wan compare the contain of the string, let saystring a = "java is cool";string b = "well java is cool";the tokens for a =3 n b=4,i wan compare the whole line using tokenizer, where the b have the similar string on a. the result will be,token 2 3 4 from b is simalar with ...

O(nloglog n) sorting

614 byte By mehdi62ba at 2007-10-2 8:26:05
Hi, can anyone help me with this question:Given an array of n integers with many duplications. The number of distinct integers in the array is at most log n.a) Give an O(nlog n) algorithm that outputs the distinct integers in the array. The output is store in an array B. Size of be is at most ...

sounds like search algorithm

155 byte By gmugirla at 2007-10-2 8:29:33
I need to implement a sounds like search in my application. I have tried on the net but in vain. Can anyone suggest me any algorithm. Regards

Senior Design Project Ideas

683 byte By Viveka at 2007-10-2 8:53:43
Hi,I am looking for ideas that I could implement for my senior design project. The topic of the project could be anything. It must involve a GUI (for which I will be using Swing) and it could encompass databases, web interfaces etc. depending on the goal of the project. The project should be ...

sorting large CSV file help

451 byte By kris_javaa at 2007-10-2 8:54:54
I have to sort 180MB csv file with java and I have no idea where to start, I can do it easily using ostermiller utility for reading and writing csv file and put this file into the JTable and then sort it but with large file like 180MB it doesn't work, does anyone have any idea what to do with ...

Knight's Tour?

1099 byte By WIlfred_Deatha at 2007-10-2 8:57:50
O.K, I'm real lame at Mathematics, so when I searched about this I didn't understand any of the "Squiggle... etc " stuff.I thought I'd try The "Knight's tour Problem", and thought I'd "thought up" a simple algorithm for it.After Much Hair pulling, and waiting whilst my code never turned ...

Mean-shift algorithm for images

371 byte By neosenatea at 2007-10-2 9:01:41
Hi,I want have a program that splits an image up into a number of smaller images. I now want to cluster these patches to create some prototypes for the input image.I wanted to do this using a mean-shift but I have NO idea where to start actually coding it. Could anyone give me some help on this ...

Problem with algorithm

552 byte By LeodaliSpacea at 2007-10-2 9:03:33
Hi, i have a problem with an algorithm that i'm not able to write...what it's asked to me is to create a program that order some integers, given in input, from the least to the biggest, using the Radix Sort algorithm, with the Counting Sort as the stable ordering algorithm...hope that i was ...

How do I find all possible positions?

701 byte By simon_orangea at 2007-10-2 9:06:00
If I have 3 positions and 3 numbers I know there are 6 possible soultions (of having a diff number in each)If I have 4 positions and 4 numbers I know there are 12 possible soultions (of having a diff number in each)I know the function to find the number of diff positions in n! where n is the ...

Knuth-Morris-Pratt Algorithm

516 byte By Phoresisa at 2007-10-2 9:08:00
I've been looking at this Algorithm and I understand how it works given a Next table (a table which after a failed match tells us which position in the pattern to compare next) and I understand that you work out the Next table by comparing the pattern to itself, but I do not understand how to ...