problem to generate all possible combinations in two sets

715 byte By nitinp_bioinfa at 2007-9-29 12:08:45
Hello All,I have a question which is troubling me quite a bit.I have two sets A={1,2,3}B={4,5,6}Answer needed(4,1),(4,2),(4,3).(5,1),(5,2),(5,3)(6,1),(6,2),(6,3)Mapping can be done only when the second set element is greater than the first set element.A={4,5,6}B={1,2,3}Mapping cannot be done.In ...

Phone Service

312 byte By Help_Mishellea at 2007-9-29 12:11:31
I am trying to write a Java program that allows a person to record using a microphone and send it to another computer using a UDP socket. Could you direct me to code that will do this? (The Answering Service program is much too complex - need something that is simple) I am a newbie to the Java ...

Need helps on finding Max and Min

271 byte By snguyent4javaa at 2007-9-29 12:22:11
Can any one help me to find the largest and smallest value in the sequence of intergers ... and print the position of the smallest and largest number after each number is entered.? Users will input sequence of nonzero inteters. Thank You Very Much!

Need Reed-Muller sample code

104 byte By vitovpa at 2007-9-29 12:23:02
Does anyone have some sample code that implements Reed-Muller error correcting encoding/decoding?

Simple Merge Sort

571 byte By xWagona at 2007-9-29 12:23:36
Hello,I am currently working on an assignment for one my courses at school that involves analyzing the different complexities of sorting algorithms. There is a piece of my assignment that is giving me a good deal of grief, specifically the merge sort algorithm.I've searched around the web but ...

Things Visible in Two Classes

3069 byte By analysis_gurua at 2007-9-29 12:35:10
I'm developing a program using two classes: "Analysis.class" and "AnalysisCalc.class", each in separate files. I don't desire to import either class via package design. I'm trying to call a method from "AnalysisCalc.class" using variables visible to both classes. The intent of the program is ...

Java Octree Implementation

78 byte By manjeet78a at 2007-9-29 12:40:06
HiIs anyone aware of Octree Implementation in Java?thanks

Inverse ERF

304 byte By detlya at 2007-9-29 12:49:08
I'm using the colt library, which has erf and erfc - but I was wondering if there is a quick way to calculate the inverse erf function. At the moment, I'm using a bisection method which is reasonably quick and does the job, but is there some method using mathematical functions? ...

plz i need your help

431 byte By nawaray82a at 2007-9-29 12:50:00
hi...i am doing a project about face and voice recognition. i will be using for that java ... i will also be using a database( access) to store and get the images and the voice of the people..so please can you help me in designing my tables and how to uses these tables with java ..(just a ...

Word replacing

160 byte By akhalil100a at 2007-9-29 12:54:43
What's the shortest code to replace every word in a string to have thefirst word letter to be upper case and the rest in lower case?Thanks

Sorting....

335 byte By azniuma at 2007-9-29 13:04:07
HelloI am a junior programmer and i am NOT asking for someone to do a program for me like some ppl out thereI want to know (could not find in the forum search), how exactly does quick sort and heap sort work(yes i know im stupid). And how does the thingy "n log n" work to calculate the ...

growing boxes in empty fields

2464 byte By oldmicaha at 2007-9-29 13:17:15
I have a feeling this is one of those "there is no easy answer" type questions, but I thought I would throw it at the group before attempting to hack out something. I've got a buffered image of black and white pixels. I would like to find the largest rectangular area containing only white ...

calculating cube roots

235 byte By W3333a at 2007-9-29 13:18:06
Can anyone help me with Java code that will calculate the cube root of double values?If you know the necessary code, or can helpme find existing code, it would be much appreciated.Thanks, W3333

face recognition

335 byte By william55a at 2007-9-29 13:20:45
i would like to ask how to perform face recognition using java. Suppose there are many JPEG images in my computer, and i use web cam to capture one's image. After i capture one's image, how can i find a correct JPEG file that have the same face as the face being capture by the web cam?Thank ...

Help, How to detect the end of sentence in a plain text

947 byte By lauehuanga at 2007-9-29 13:20:46
Hi, EverybodayI really don't know how to use ArrayList and endsWith to realize detecting the following question. Could you give me some help? Thank you!1. find the end of the sentence. that means that we print it out if you meet "!" or "." .....2. calculating the frequency of the key word in ...

standard deviation using linked lists

237 byte By niamhgurla at 2007-9-29 13:21:02
hi, if anybody couold help me out with this Id be really grateful. I need the code for standard deviation using linked lists.I dont have a clue about linked lists and my assignment is due Tuesday!!!Thanks again,Niamh

MODULUS %

531 byte By kkopacza at 2007-9-29 13:22:17
I'm supposed to able to seperate a 4 digit number (ex- 4357) into each digit representing the thousandths, hundredths, tenths, and ones places; USING MODULUS. I know it can be done easily with charat or just regular division, but I can't figure out the algorithm to do it using %I'd imagine ...

Regular Expressions - Logical AND

564 byte By BacMana at 2007-9-29 13:23:46
I know this isn't Java, and it's not really an algorithm, but I can't figure this out. I hope amongst this bright group of developers someone can help me.I am searching for a regular expressions that will match a series of words.Example:Given the words: "ship book"What regular expression ...

class Timer

247 byte By iliailiaa at 2007-9-29 13:27:14
I don't know why this code doesn't work:Timer t = new Timer(500, new TimerAction());t.start();The error is: Invalid method declaration.TimerAction is class which implements ActionListenerPlease help me!

center window panes

169 byte By iliailiaa at 2007-9-29 13:27:41
How I can center my window panes (panes of the programme) on the desctop. All my window panes at the left top of the desctop afret compilation.Please help

Help with developing algorithm

1521 byte By mtomkinsona at 2007-9-29 13:45:21
Hello all!I am currently studying java in one of my engineering classes and received this project on an assignment. I was wondering if anyone would be able to help me out. Any help would be useful.Thanks a lot!Question:Write a program that takes as input a numeric string (i.e. a string that ...

Thread-safe rehash

304 byte By msundmana at 2007-9-29 14:00:15
Here is a problem that at first sounds simple, but in fact is quite the opposite.Let's say I want to keep get(key) of a hash map unsynchronized for maximum performance (other methods may be synchronized). What would be the best way to implement the rehashing?- Marcus ...

Math question (calculus)

629 byte By pmuurray@bigpond.coma at 2007-9-29 14:06:33
Hi.I have a rectanglar area with one corner rwesting at the origin and the other corner resting at some point (A, B). The area weighs one unit of mass per one square unit of area. What is it's rotational inertia about some point (x,y), which may or may not lie within the rectangle?The ...

building a general tree

1272 byte By Adamos1a at 2007-9-29 14:09:05
hi , Can anyone tell me how to build a general tree in which each node has a pointer to its leftmost child and its (own) next sibling.this is to implement a program that will play an optimal game of tic-tac-toe against a human user. Prior to playing the game itself, the program must first ...

Need help!

1427 byte By chaohiolabonjoura at 2007-9-29 14:16:52
I am doing a profanity checking application that will check every sentences or fragment user had entered. When the program encounter offending word it will replace the user input with string "PROFANIY". I have problem with "case insensitive " I know that java is case sensitive but how do you ...

need help on finding words in a string

371 byte By chaohiolabonjoura at 2007-9-29 14:18:16
I am doing a profanity checking progam. How do you find a word in a sentence or phrase? For examle, if we want to find the word "mall" in the sentence "I went to the mall" ... how do we do it and how you make it case insentitive.do we have to use for loop like this: for (index = 0; index < ...

Lmuto's algorithm

686 byte By Sadafa at 2007-9-29 14:25:57
Hi!please help me in the code for the quick sort using lomuto's algorithmi have this array with a pivot 6 please tell me how can i use the Lomuto's code to get a sorted aray0149835276i need codei have written a code but it is not sorting itpublic static int Lumuto(int[] a){int ...

insertion an object into a sorted list

336 byte By 530093a at 2007-9-29 14:30:52
HelloI have got class MySortedList which encloses List object.class MySortedList { private List list = new LinkedList(); ... public add(Object obj, Comparator cmp) { ... }}Who knows how the add(Object, Comparator) method can be realized better?All ...

reducing sha ?

755 byte By silk.ma at 2007-9-29 14:31:13
hello.we know that the result from calculating sha-256, say, ona message results in 32-byte hash. however, i need to reducethis number ...now i realise that probably sounds quite stupid, but i thinkit might not be so bad, because my input is only a-z0-9 and afew more ($.,'"()&) ... so my ...

how to compare Strings

806 byte By chaohiolabonjoura at 2007-9-29 14:32:17
Let said we have String s = " I went to the beach"and the user input String input = " He went to the mall"If any word in a input's sentence match the words in string "s", it will display "matched". For this example, "went", "to", "the" of input sentence were found in string s, so will print ...

Binary Shift Left Algorithm

2734 byte By Kavi_herea at 2007-9-29 14:32:19
Hi,One of our client has an DOS exe which will accept 32 bit Signed Integer(Max length-6digits) and produce one more 6 digit number. It is using 40 steps to generate the output. To generate the output, binary shift left algorithm is used. But if overflow(out of range) happens, the logic is ...

Mapping/ traversing pixels in an area.

2788 byte By klana001a at 2007-9-29 14:39:54
I need an algorithm to travel through all the cells, in an area which has been defined, in a 2 dimenional map (i.e. image)Currently i have made and am using a wall following routine with a stack of "alternate path decision" co-ordinates. My problem is that the stack can get very large.basically ...

How to parse out primitives out of a stream?

737 byte By linuxhippya at 2007-9-29 14:40:51
Hi there!I need to parse a lot primitives (chars, ints, longs, bytes) out of a stream.My Problem is, that the following way is very slow:BufferedReader.readline -> String.substring -> Integer.parseInt(String).This algoryth produces a lot of Garbage and most CPU-power is used to create new ...

3d points curve fitting (from real life data)

774 byte By oracle3001a at 2007-9-29 14:45:50
Hi All,I have a series of 3d points that represent a ball moving in all 3 dimensions. Basically a ball has been thrown, it has been tracked, and have obtained automatically obtained the centre of the ball in 3d. During the motion, the also hits the ground and bounces at one point.I want to find ...

Can we Log off our computer from java Code

45 byte By faisalloea at 2007-9-29 14:48:09
how to log off our pc from java code ?

where windows batch file which log off windows lies ?

120 byte By faisalloea at 2007-9-29 14:48:17
where windows batch file which log off windows lies ?to which me can call from java code to log off my pc?

where windows batch file lies which log off windows ?

94 byte By faisalloea at 2007-9-29 14:48:18
where windows batch file lies which log off windows ? wana log off my pc from java code

String combinations Algorithm

450 byte By hankxa at 2007-9-29 14:49:37
Hi, I want an algorithm that gives me all the combinations that can be made out of a given string.e.g. from a given string ABC we can have following combinations:AB CABBAACCABCCBABCACBBACBCACABCBA...I have come up with a recursive algorith but i feel its slow. Can anybody suggest me one ...

Filling in quadrilaterals in a pixel array

951 byte By cursor_loopa at 2007-9-29 14:52:36
Short version: Does anyone know of an algorithm like fillPolygon, but that works with a pixel array? (and doesn't need more than v1.1) Thanks.Long version:Hi. Hope there's a math guru among you who can give me a clue...I'm doing an animated 3D applet but restricted to pre-plugin Java - ...

Find combinations

542 byte By nottysa at 2007-9-29 14:54:04
Hi allHere is my problem:I have some arrays of different sizes. I need to write a method that would find all combinations from the arrays(one element from each array) that are below certain value.eg if array A has elements 2 , 3and array B has elements 1, 2and array C has elmemnts 1if my total ...

JTAPI (java telephony api)

404 byte By faisalloea at 2007-9-29 14:57:27
can any body help me out that ... i trying to execute jtapi program which is written in documentation... which makes callproblem is that at run time is showning exception"Jtapipeer initilization exception"wat can be the problemand when using internet using dial upexception is jtapi unavalible ...

Problems with arrays

3576 byte By GiertzschMarca at 2007-9-29 14:59:37
Hello,I have got problems with giving out an array.I declared two arrays and puted them out, but with theresultarray it doesn?t work. Cansomebody help me?Here is a runtime output:Grad eingeben!1Koeffizienten eingeben!121x^0 + 2x^1 + 1Grad eingeben!3Koeffizienten eingeben!23452x^0 + 3x^1 + 4x^2 ...

JGraphT - great free graph library

1464 byte By Linda_Buismana at 2007-9-29 15:01:53
Hi,I've been working on a graph project for a couple of months and I decided to use JGraphT for my data structures and traversals. I just wanted to post a quick review for it, hoping it may help someone in the future who searches this forum for a graph library :)First of all, Barak Naveh and ...

Where can find useful libraries for numerical computing?

154 byte By mahlerfansa at 2007-9-29 15:13:53
I am looking for an algorithm which can bring me the maximum of a complex function. Is there any website talking about this topic?Thank you!

B-Spline Explanation / Implementation

916 byte By oracle3001a at 2007-9-29 15:15:19
Hi All,I am interested in coding in java a b-spline fit of a series of 3d points I have generated through an image tracking application I have written for my final year undergrad project. I am not a maths student, just a humble computer science undergrad, therefore I know little about ...

atan in jdk1.1.8 doesn't work. help

5900 byte By JoostJensa at 2007-9-29 15:19:01
I am creating a program which simulate the effect of gravity on a object (for a game). For this I am working with jdk1.1.8. (not by choice). But for some reason the movement of the object just turns around. I believed that de method Math.atan2 was wrong so i have rewritten it and it worked ...

Indexed substring search

2185 byte By msundmana at 2007-9-29 15:19:26
Let's say I have lots of instances of the following class:public class Bob {public final String name;public Bob(String name) { if (name==null) throw new ArgumentException(); this.name=name;}}The name of a bob can be pretty much anything, but usually it is 5-50 characters long and consists of ...

Single linked list to store a decimal number

575 byte By YoYo_81a at 2007-9-29 15:22:17
Hi,Currently, I have a situation of having a single linked list created by myself with simple methods like insert and delete that used to manipulate the nodes.I knew that Java got linkedList class which might be able to perform the below function quite easily. But I wished to know using self ...

Storing a decimal number in linked list without truncation

1786 byte By fucky_81a at 2007-9-29 15:24:23
Hi all,currently, I have a linked list which internal representation is a decimal number. i.e. if the decimal no is 0.001234567 then it should look like this (first node)0->0->0->1->2->3->4->5->6->7(last node in the list). After that, I will pass this linked list to a ...

Need help for credit cart number validation

255 byte By vahedasa at 2007-9-29 15:25:47
Hy everybody,I must write a code to validate a credit cart number..AND I don't know how to do thatCould some help me ?Do some body have already a written code or an algorithme for this..I need some body's help please..