JAVA API for AutoDesk CAD

64 byte By Trussjavaa at 2007-10-1 21:06:06
Anybody recommands me a JAVA API for AutoDesk CAD please?

HoldEm odds calculation with adjustment

367 byte By dingjinga at 2007-10-1 21:07:09
Hi,I have put online a HoldEm odds calculator: http://www.jbridge.net/jimmy/holdem_sim.htmThe problem is that the betting advise is over optimistic, due to the assumption that every opponent has a random hand. If a player keeps raising, he is more likely to have As & Ks than 2s & 3s.Any ...

n-ary search trees

355 byte By uiga at 2007-10-1 21:08:53
I want to build a utility similar to unix/linux "find". It works with binary search trees, but as a i do it just for experimenting, i'd like to work with n-ary trees also.-Has anybody tried something with n-ary tress? They don't seem to be so widely used.-Does anybody know of any Java or ...

B+ Tree versus Ternary Search Tree

886 byte By rammenon1999a at 2007-10-1 21:09:09
Hi All, Was looking out for some benchmarking for B+ Trees vis-a-vis Ternary Search Trees.a) For structured search For instance, user needs to search for some entity. He does so by giving a set of name-value pairs.e.g. the search key would be something like propertyName1=value1 or ...

Someone could help me?

1376 byte By Java__Estudantea at 2007-10-1 21:14:27
Hey, i hope i'm not annoying u with this :S ...I have a just small problem on this code. I'm trying to figured out but im didn't solve it yet. COuld u helpe me? thanks!the out print must be something like this:Insert a number: 12The Solution of 12 is: 3 <<<- (1+2) another example: ...

Regular Expression Help

374 byte By sweep57a at 2007-10-1 21:14:33
I'll simplify this a litttle. Lets say you have a string:(NP abc) (PP def) (NP abc) (PP ghi) (VP jkl) (PP mno)& you want to extract everything from the VP bracket at the end to the nearest NP bracket on the lefti.e. (NP abc) (PP ghi) (VP jkl)but not the following:(NP abc) (PP def) (NP abc) ...

Algorithm

531 byte By rthi99a at 2007-10-1 21:25:55
Hi,I am looking for the following..Given an inputfor example ait shud generate..the following codes a.1bGiven a.1 it shud generatea.1.a a.2bGiven a.10.a.1.c.ait shud gerenatea.10.a.1.c.a.1a.10.a.1.c.ba.10.a.1.da.10.a.2a.10.ba.11bi hope u get the idea//it wud be nice if u cud give some ...

Permutation Vector

709 byte By fatzopilota at 2007-10-1 21:33:54
Hi guys,I am looking for an efficient method to sort a vector (in mathematical sense) of double values. Instead of sorted values I need to get a permutation vector describing the sorting.So far, I use the COLT package ( http://dsd.lbl.gov/~hoschek/colt/) for this. The values to be sorted are ...

Fast 2-d array comparison

979 byte By jvaudrya at 2007-10-1 21:35:38
Hi,My program shows table data, and keeps getting updated with a 2-d array of current values.Originally, I would replace everything. However, that is verry inefficient. It's much faster to compare only the rows that have been modified, and replaces those rows.I use a row-based hashcode to ...

how to implement this ?

831 byte By uiga at 2007-10-1 21:41:51
String s2;//already contains somethingboolean flag=false or false; //dependsfor (int i=0; i<table.length-1; i++){if (s2.contains(table[i])==true)flag=(true if it contains it contains ALL the previous elements too)else flag=false;} The flag part is the confusing one. Any ...

Circle-in-a-square problem with Backpropagation Neural Networks

333 byte By Bishibosha at 2007-10-1 21:42:56
Hi. I am trying to solve the classical cricle-in-a-square benchmark problem for nerual networks with a BP(backpropagation) neural network. However, It seems that there aren't any ready-made training and production data for this problem on the Internet. or maybe it is only me that can't seem ...

median

184 byte By gomaa at 2007-10-1 21:44:46
Suppose there is an array of random numbers that are unsorted, I wish to find out the median of them in O(nlogn) time, what should I do? Can anyone give me an algorithm on this?

unique random

64 byte By ma_biroteea at 2007-10-1 21:46:59
Hi all I need algorithm to generate unique random number.

String to BitSet Conversion

941 byte By niall7890a at 2007-10-1 21:47:51
Hello all,I have been trying to find an efficient way to convert some strings into Bitsets in Java. Unfortunately I'm having trouble mapping the string character values to the Bitsets. Currently I read in all of the Strings which reside in a text file in the format:a b c fc da detc. I then ...

findin median

103 byte By gomaa at 2007-10-1 21:51:38
What will be the upper bound to choose middle element, if array of size 'n' is already sorted.

time complexity

208 byte By gomaa at 2007-10-1 21:51:39
Calculate the time 僴complexity of the following procedure .funtion1(){ for i=1 to n do i=i+1 for j = 1 to n do for k = n*n downto 1 dosum=sum+1}

Find all nearby points (defined as latitude and longitude)

2197 byte By Andrew-Ca at 2007-10-1 21:52:20
I have a database containing a large number of points, theoretically anywhere on the earth's surface (defined as latitude and longitude). I need to be able to find all points that fall within a small circle, arbitrarily positioned anywhere on the earth - that is to say find all points within ...

Suggetions.. for a Class Scheduler program..

208 byte By fmanubaga at 2007-10-1 21:52:33
Hello.. I just want to ask for suggestions or opinions on what algorithm could be suitable for a Class Scheduler program.. that our group is to create... an algorithm that is suitable for a scheduler..

Open source BigInteger

94 byte By ablertus_screena at 2007-10-1 21:53:43
Hello!Does anyone know any open source implementation of BigInteger (BigNumber)?

logic for this math problem

750 byte By katriyaa at 2007-10-1 21:55:21
Before I get stinker replies for cross posting , let me tell that , i have been recommended to post this in this forum. My problem is such:I need to find a logic to implement the following :In the floating point number , say , 1.0.. the Integral part will remain constant(1) but the decimal part ...

Algorithm for File IO

328 byte By janisofta at 2007-10-1 21:56:54
Hello AllCan any one inform me on how to find out if a binary file is a text file or a try binary. There is a class that reads all files as binary (both text and binary). I need to be able to distinguish at run-time whether the file is text (i.e. .txt, .rtf, .sql files are considered text) and ...

quicksort,

4696 byte By go2000a at 2007-10-1 21:57:50
why this code makes errorpublic class QuickSort { public static int cutoff=3; static int[]arr=new int[10];public static void swap(int []A,int x,int y){ int temp=0;temp=A[x];A[x]=A[y];A[y]=temp;}//end swap functionpublic static int median3(int[]A,int left,int right){int ...

recurrence relations

140 byte By gomaa at 2007-10-1 21:58:00
if we Solve this recurrence relations. may assume that T(1) = 1 then we find O(2^n/2) or n^2 just tell me T(2m)= 2T(2m-1) + 2m

Finding size of object

286 byte By santoshjavaa at 2007-10-1 22:00:56
hi,I want a code which finds the Size of object in memory.And don't want to write extra empty argument constructor and other compromising stuff.I am srtogly thinking that there is no way, but still waiting for your comments.Please replay immediately,

Calculate Mode for CONTINUOUS DATA

331 byte By BioInfoMana at 2007-10-1 22:02:50
HiI am trying to code a method to calculate the mode for continuous data. The challenge here is getting the 'right' bin size for the data. I know this can be done using something called the "Incomplete gamma function" but I have no idea how to do this.Any help would be greatly ...

balanced merge-external sorting algorithms

150 byte By ayah_sura at 2007-10-1 22:11:37
Hi all I need the code of (balanced merge sort algorithm) in java pleeeeeeeeez i need it so much & quickly god bless U

Custom equality comparison

995 byte By rammenon1999a at 2007-10-1 22:13:08
Hi All,I have an Object lets say its named "Bomb".Bomb has two member variables x and y both Strings.public class Bomb { String x; Stirng y;}I have a HashMap that holds these Bomb objects as keys , and values as some other objects.HashMap __| Bomb | some object |-In the class Bomb, either the ...

Trigonometric functions with java.math.BigDecimal

107 byte By robinhollensteina at 2007-10-1 22:17:38
Hi, how do I implement the sinus, cosinus, etc. functions for BigDecimal class?R. Hollenstein

NetBeans 4.1

86 byte By i_r_tomya at 2007-10-1 22:17:45
How can i convert my existing project into an-exe file from within NetBeans 4.1

Dijkstra Algorithm

918 byte By dimple_sharmaa at 2007-10-1 22:18:12
Hi all,I have adjancy matrix for the graph in n x n dimension. where n is the number of node.As Example,Suppose i have 5 nodes called a,b,c,d & ewhere edges are as under :a->ea->bd->ed->ce->ae->cThen my matrix would be like0,0,0,0,10,1,0,0,00,0,0,0,00,0,1,0,11,0,1,0,0where ...

Lack of Generic Tree support

480 byte By techneexa at 2007-10-1 22:18:43
I am wondering how people feel about the lack of the Tree type in Java? I find the Java types pretty weak generally, but at least there are several Set, Map, List implementation to choose from. There is no Tree, or perhaps there are too many. There is the UI tree classes (in swing), the ...

Java Data Structures Book

154 byte By Domingo_PMa at 2007-10-1 22:19:48
Hi all, I'm looking for a Data Structures and Algorithmitmics book in Java with the answers to many of the exercises.Any idea?Thanks

Simple Conversion Program

338 byte By personguy654321a at 2007-10-1 22:32:09
Hey I'm taking a class and the teacher told us to create a program that would convert strings into numbers, change them with an algorithm, and then convert them back into strings. He wants to be able to type in a sentance and have the computer change it into an unrecognizable string. I don't ...

Threading issues

1055 byte By SippingOnMyCupOfJavaa at 2007-10-1 22:33:20
Hi everyone ...First of all, let me apologize if I've posted my problem in the wrong place - kinda new to this, and not sure what is what ....I'm supposed to write a program that a. listens to a particular portb. Captures SNMP traps and makes a Java object out of thatc. Writes the object ...

Divide a number into random parts

537 byte By jattena at 2007-10-1 22:38:35
I need to divide a number into a collection of random parts. So that the sum of all parts is equal to the number.E.g.:public void divideRandomly ( int number, int parts){int[] returnArray = new int[parts];//do random division calculationsreturn returnArray;}Lets say the number = 20And parts = ...

Reading groups in a regular expression that can match multiple times.

798 byte By jwbroeka at 2007-10-1 22:43:58
Greetings all,Suppose I have a regular expression of the form "(\\s+ab+a)+" and data like this: " aba abbbaabbaabbbbba"I want to read each and every occurrance, but MatchResult puts them all in group 1, overwriting any earlier occurrances. This way, I'll only be able to read the last one.Is ...

Making Expert Systems Smarter

128 byte By RogerFGay1a at 2007-10-1 22:50:51
Making Expert Systems SmarterPower Point presentation at: http://www.geocities.com/capitolhill/5910/ISR2.htm

Machine Translation system's database

428 byte By OttScreenNamea at 2007-10-1 22:51:09
Is there any way to find such database that used machine translation. I'm trying to write a program that translates english text to mongolian using context-free grammar(further i wanna make it using Stochastic Context-free grammar). it's almost done. but i have no idea of how to create a ...

Matching ordered points to minimze distances

834 byte By thomas.behra at 2007-10-1 22:51:11
Hi folks.I have to solve the following problem:Given two sets P and Q of points in R^2 with |P| < |Q| find for all p in P the pairs (p, q) in P x Q, such that the sum of the distances d(p,q) is minimized.This could probably be solved with a matching or flow algorithm, but I have a rather ...

3D Triangulation

167 byte By monique_louisea at 2007-10-1 23:01:43
Hi all, does anyone know about any robust API / library which implements 3D triangulation from a set of 3D points?Thanks in advance,Monique

chart parsing

55 byte By OttScreenNamea at 2007-10-1 23:05:56
i need a chart parsing algorithm. any java code?

Unexpected NaN from arithmetic operation with double

1423 byte By Ben_Pha at 2007-10-1 23:07:45
Unexpected NaN from arithmetic operation with doubleI抦 not sure if this is the right place to post this message but I hope someone can help. I'm puzzled by a very strange computational error. Java is multiplying two doubles (a[2]*b[2] or 0.0 * 0.0) and is getting NaN. I've attached the code ...

test

11 byte By rkippena at 2007-10-1 23:14:39
test

Assign id to new add topic

112 byte By punit_kumara at 2007-10-1 23:28:16
Assign id to new add topic,when new problem is add in java forums,how id is assign to topic

Chinese Rigns Puzzle SOlver

218 byte By a4udi98a at 2007-10-1 23:28:23
Can anyone provide me with the source code for a Chinese rings puzzle solver. THe user would input the starting stage (ie 0100010) and what stage they would liek to get to (ie 0000000). need program asap. thanks

substring matching for lists

1396 byte By javvvaa at 2007-10-1 23:29:26
Can anyone suggest efficient data structure or algorithm to get the "subset" or "superset" of a string. What I mean by subset/superset is this:{ "new york", "new york city", "new york state", "york city"}superset("new york") = {"new york", "new york city", "new york state"} // left side is ...

Stopping thread

651 byte By Zoliqa at 2007-10-1 23:31:04
Hi!!!I have a serious problem with a program i've made.More exactly i have a problem with just a part of the code because i can't stop a thread.This thread is executing a cpu intensive code(i mean the cpu is at 100% when runs this part of code), and i don't know how to stop it.It can be ...

Stopping a thread

651 byte By Zoliqa at 2007-10-1 23:31:05
Hi!!!I have a serious problem with a program i've made.More exactly i have a problem with just a part of the code because i can't stop a thread.This thread is executing a cpu intensive code(i mean the cpu is at 100% when runs this part of code), and i don't know how to stop it.It can be ...

components involved in recursion

393 byte By ah_aia at 2007-10-1 23:42:29
I am a university student doing a final year project. my lecturer ask me to draw out all the components involved in recursion but i have no idea what is involved. She told me that STACK is one of them because all the values need to be stored into it when recursion is done. Apart from that, i ...

Trend calculation

201 byte By monique_louisea at 2007-10-1 23:43:50
Hi all, does anyone know any reference about trend calculation from a set of points ? Better, does any knoe any Java API which implements this kind of calculation?Thanks in advance