Anybody recommands me a JAVA API for AutoDesk CAD please?
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 ...
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 ...
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 ...
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: ...
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) ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
Hi all I need algorithm to generate unique random number.
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 ...
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.
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}
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 ...
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..
Hello!Does anyone know any open source implementation of BigInteger (BigNumber)?
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 ...
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 ...
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 ...
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
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,
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 ...
Hi all I need the code of (balanced merge sort algorithm) in java pleeeeeeeeez i need it so much & quickly god bless U
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 ...
Hi, how do I implement the sinus, cosinus, etc. functions for BigDecimal class?R. Hollenstein
How can i convert my existing project into an-exe file from within NetBeans 4.1
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 ...
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 ...
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
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 ...
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 ...
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 = ...
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 SmarterPower Point presentation at: http://www.geocities.com/capitolhill/5910/ISR2.htm
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 ...
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 ...
Hi all, does anyone know about any robust API / library which implements 3D triangulation from a set of 3D points?Thanks in advance,Monique
i need a chart parsing algorithm. any java code?
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 ...
11 byte By
rkippena at 2007-10-1 23:14:39
test
Assign id to new add topic,when new problem is add in java forums,how id is assign to topic
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
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 ...
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 ...
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 ...
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 ...
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