c  « algorithm « Java Collection Q&A

Home
Java Collection Q&A
1.algorithm
2.array
3.Array Byte
4.Array Char
5.Array Convert
6.Array Dimension
7.Array Integer
8.Array Object
9.Array String
10.ArrayList
11.collection
12.comparator
13.Development
14.Garbage Collection
15.Generic
16.hash
17.HashMap
18.HashTable
19.iterator
20.LinkedList
21.List
22.Map
23.queue
24.Set
25.Sort
26.tree
Java Collection Q&A » algorithm » c  

1. Facial recognition/merging software    stackoverflow.com

Can anyone point me in the right direction of some facial recognition libraries & algorithms ? I've tried searching/googling but i mostly find thesises and very little real software.

2. Learning Algorithm and Saving Data in Software    stackoverflow.com

I'm coming from a web-development background and I am wondering how I would make a learning algorithm in Java/C++. Not so much the algorithm part, but making the program "remember" what ...

3. project ideas on algorithms ,data structures and parallel programming    stackoverflow.com

I am a final year Computer Science and Engineering student.As part of the final year project i was planning to implement a graph algorithms library(using parallelization) for c++ but came to ...

4. What do i need to know about dynamic programming?    stackoverflow.com

Started up solving UVa problems again as a way to pass time (going to the army in 6 weeks). I love writing Java, but end up using C / C++. It's ...

5. How to obtain all subsequence combinations of a String (in Java, or C++ etc)    stackoverflow.com

Let's say I've a string "12345" I should obtain all subsequence combinations of this string such as:

  1. --> 1 2 3 4 5
  2. --> 12 13 14 15 23 24 25 34 35 ...

7. Algorithm for searching for an image in another image. (Collage)    stackoverflow.com

Is this even possible? I have one huge image, 80mb with a lot of tiny pictures. They are tilted and turned around as well. How can i search for an image ...

8. Do people still write their own data structures and algorithms?    stackoverflow.com

Instead of the STL and similar libraries in other languages? As a newbie, how much should I delve into this part of software development? Breadth first or depth? Is only a conceptual understanding ...

9. faster implementation of sum ( for Codility test )    stackoverflow.com

How can the following simple implementation of sum be faster?

private long sum( int [] a, int begin, int end ) {
    if( a == null   ) ...

10. C++/C/Java: Anagrams - from original string to target;    stackoverflow.com

I'm trying to solve this problem : http://uva.onlinejudge.org/external/7/732.html. For the given example, they give us the original word, for example TRIT and the target "anagramed" string, TIRT. Objective: We have to ...

11. Permutation of array    stackoverflow.com

For example I have array:

int a[] = new int[]{3,4,6,2,1};
I need list of all permutations such tha if one is like this, {3,2,1,4,6}, others must not be the same. I know ...

12. All possible paths in a cyclic undirected graph    stackoverflow.com

I'm trying to develop an algorithm that identifies all possible paths between two nodes in a graph, as in this example.
in fact, i just need to know which nodes ...

13. Game Development: How to limit FPS?    stackoverflow.com

I'm writing a game, and I saw the FPS algorithm doesn't work correctly (when he have to calculate more, he sleeps longer...) So, the question is very simple: how to calculate ...

14. Where shall I find Questions to be put up in a Coding contest?    stackoverflow.com

Err....I guess this aint correct place to ask this question... But i couldn't find any place where i could get the desired coding problems, that i should put up in a Coding ...

15. Recommendation on big integer calculation library    stackoverflow.com

Could your recommend some good big integer calculation library in C/C++/Java and it is better to support logarithmetic. Thanks.

16. Java tokenizer, C++ tokenizer and strtok    stackoverflow.com

I Want to know what is the algorithmic complexity of following 1. Java String tokenizer 2. C++ STL based tokenizer 3. strtok. Is there any faster algorithm then rudimentary strtok to tokenize a string based ...

17. How to rearrange data in array so that two similar items are not next to each other?    stackoverflow.com

Just want to rearrange the data in array so that similar items are not next to each. The data should not be removed from the array, if it can't be rearranged ...

18. Regarding representation of Josephus problem using arrays    stackoverflow.com

Algorithms by Robert Sedwick, It was mentioned that linked list can be represented using Arrays, at following link http://flylib.com/books/en/3.55.1.34/1/ Fig 3.8, here if 5 is removed from my understanding ...

19. java referencing objects in an array    stackoverflow.com

Is there a similar function to indexof() that will search a string array (preferably unsorted) for a string and return it's index? (or maybe ordinate value?)

for example i am trying:

String[] colours= ...

20. Programming Contest Question: Counting Polyominos    stackoverflow.com

Please see my own answer, I think I did it!


Hi, An example question for a programming contest was to write a program that finds out how much polyominos are possible with a ...

21. Detect null reference in an array    stackoverflow.com

I want to detect whether or not a subrange of an array contains the null reference. Somehow like this:

public static <T> boolean containsNull
(T[] array, int fromInclusive, int toExclusive)
{
    ...

22. what is the fastest, MPI-supported, genetic algorithm c++ library    stackoverflow.com

I want to use genetic algorithm to solve my feature selection + structure learning problem. Since we have huge amount of data with very large searching space, plus we need to ...

23. 8 queens problem    stackoverflow.com

How can i go about implemting 8/4 queens problem?Should i use DFS/BFS,I think DFs will be better. Can any one give some pseudocode/guidlines?

24. Finding duplicate element in an array?    stackoverflow.com

I saw a interview question as follows: One number in array is duplicating.Find it Simple solution is as follows:

for(int i=0;i<n;i++){
{  
    dup = false;
    for(j=0;j<n;j++){
  ...

25. algorithm behind taveling sites    stackoverflow.com

Can any one please let me know the algorithms that is used in traveling sites like makemytrip.com,cleartrip.com etc.. i know that its a graph problem and they calculate spanning tree..but i ...

26. Broken Necklace USACO Problem    stackoverflow.com

Broken Necklace You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two examples for ...

27. Largest sum contiguous subarray (Interview Question)    stackoverflow.com

Possible Duplicate:
Find the maximum interval sum in a list of real numbers.
I was asked the following question today at Adobe interview for the position ...

28. Detecting if two images are similiar    stackoverflow.com

Could someone give me a push in the right direction, if I am willing to determine if two images actually make a panorama together (or are panorama-like, e.g contain "same" parts, which ...

29. C++/C#/Java video analysis question    stackoverflow.com

Could someone give references / frameworks, which allow to do something like Microsoft Kinect does, but using only one video stream? I would like to see algorithm abstracts and papers if there ...

30. Java beats C++ on recursive algorithm speed comparison on my simple test    stackoverflow.com

With this divide and conquer algorithm (Programming Pearls p80) to find the max sum found in any contiguous subvector of an array, the Java program is faster than the C++ counterpart ...

31. How to get multiple solutions for a crossword?    stackoverflow.com

I have already seen the forums and different questions on this. But i want to ask something different. I have two wordlist of different words and one grid specified by 0 and 1. i ...

32. Boolean system ( for C++/ C#/java)    stackoverflow.com

How can I programatically resolve this type of system :

A = !B
B = !C
D = !B
E = !A
E = !B
so I can get by substituting A = C = D ...

33. Compute x to x power in the most optimal way possible    stackoverflow.com

Possible Duplicate:
The most efficient way to implement an integer based power function pow(int, int)
I know this question is pretty easy but my requirement is ...

34. Optimize Algorithm Required- Arrays    stackoverflow.com

We have an array A of integers of size N. Given another array B which contains indices, where size of B <= N and 0<=B[i]<=N-1. Now we have to remove all ...

35. SPOJ question - WHat is going wrong here?    stackoverflow.com

I was answering this spoj question: http://www.spoj.pl/problems/JAVAC/ I coded the submission in C++. I am pasting it below. The submission consistently gives wrong answer. I cannot find a test case for ...

36. Generic Log Parser Algorithm    stackoverflow.com

My Application when running is writing logs. Now I need to check whether indexing is completed or not by checking for a status message as to whether it's written in logs ...

37. Algorithm to loop over an array from the middle outwards?    stackoverflow.com

I'm working on a divide-and-conquer algorithm (in fact, one that does curve fitting to a number of input points). For the 'divide' part, I need to calculate an error term for ...

38. How to find all the different combinations as units of different lengths of the characters of a string    stackoverflow.com

Hi I want to find all the different combinations rather linear selections of characters from a given string without losing sequence as units of different sizes. Example: Lets say a word "HAVING" Then ...

39. opencv facial sdk support    stackoverflow.com

I am looking for SDK that can support face detection,recognition and cluster. we have tried Pittpatt, and it works pretty good, however it was acquired by google, and hence ...

40. Algorithm for finding a prime with the least amount of computations    stackoverflow.com

Assuming you were going to write a function / method to find a prime number, what would be the most efficient way to do this? I'm thinking that it ...

41. Dynamic Sieve Algorithms for Prime Generation    stackoverflow.com

I'm implementing the Sieve of Eratosthenes, for an explanation of this see http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes. However I would like to adapt it to generate M primes, not the primes 1 through ...

42. For cycle [C/java like syntax]    stackoverflow.com

So here I am with this simple question Consider these two for cycles and please explain to me if there's any difference between the two ways of writing method 1 :

  for(i=(max-1) ; i>=0 ...

43. topcoder contest    stackoverflow.com

How to get better at solving online programming contest problems and algorithms? please help me, I'm overwhelmed by the ton of info that is out there on the net. I need ...

44. How to generate a set of values that follow certain distribution in c++/java?    stackoverflow.com

For example, I have a p.d.f f(x) = 1/25 - x/1250 (from x = 0 to 50); My question is that how to generate a set of values that satisfy the given ...

45. Find the best interval match result    stackoverflow.com

I have two sets of data in this form:

x   |  y  |  z        x1   |   ...

46. Dynamic Programming algorithm to find Heavy integers    stackoverflow.com

Recently I was asked the following question: A non-negative integer is called heavy if the average value of its digits in decimal representation exceeds 7. For example the number 8698 is heavy, ...

47. Finding maximum distance between (x,y) coordinates    stackoverflow.com

Im trying to calculate the maximum manhattan distance of a large 2D input , the inputs are consisting of (x, y)s and what I want to do is to calculate the ...

48. Class formulation concept from C++ and Java to Ada    stackoverflow.com

Maybe the C++ and Java people can help me to define this problem I'm going to explain. I have a problem in Ada (you don't need to know it, I'm just ...

49. finding 3 or more equal objects within an array?    stackoverflow.com

I stumbled upon a problem, maybe someone can give me pointers on how to solve it? So, lets assume i have an array of objects (we can assume they're lists within a ...

50. Where to find a Seats Allocation algorithms based on constraints    stackoverflow.com

i'm looking for seats allocation algorithm jason soma constraints. constraints may be like two people must sit next to each other and some don't. i'v searched but could no find. so i will ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.