-
as seen on Super User
- Search for 'Super User'
I'm just wonder, what the differences are between creating a BMP file algorithm and JPG file algorithm ?
If you know the others images' format algorithm, please post them.
Thanks.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hii..
Can anybody help me to find an algorithm in Java code to find synonyms of a search word based on the context and I want to implement the algorithm with WordNet database.
For example, "I am running a Java program". From the context, I want to find the synonyms for the word "running", but the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
Im doing a Java application and Im facing some doubts in which concerns performance.
I have a PriorityQueue which guarantees me the element removed is the one with greater priority. That PriorityQueue has instances of class Event (which implements Comparable interface). Each Event is associated…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So I have Image like this
I want to get something like this (I hevent drawn all lines I want but I hope you can get my idea)
I need algorithm for finding all straight lines on it by just reading colors of pixels. No hard math, no Haar, no Hough. Some algorithm which would be based on points…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
So i implemented a Quad tree in Java for my 2D game and everything works fine except for when i run my collision detection algorithm, which checks if a object has hit another object and which side it hit.My problem is 80% of the time the collision algorithm works but sometimes the objects just go…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have this code written so far and is correct, aside from not using A-F when the value is over 10:
public class TenToAny
{
private int base10;
private int newBase;
public TenToAny()
{
}
public TenToAny(int ten, int base)
{
base10 = ten;
newBase = base;
}
public void setNums(int ten…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am making an URL shortener, and I am struggling with the optimal way of encoding a number (id) into a character string.
I am using the characters 0-9,A-Z,a-z so it will basically be a base-62 encoding. That is pretty basic, but it doesn't make use of all possible codes. The codes that it would…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
PROBLEM DESCRIPTION
Given a decimal number, and a new base to represent it in.
If the base is larger than 10, use capital letters for the digits(that is, A is 10, B is 11 and so forth). The decimal number given, and the new base, will both be integer values, separated by a space. The base to convert…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
How can I convert a number contained in a string from any base to any other base?
Bases can be anything i.e.: 2, 16, 10, 4, 8, 9.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Given an integer, write a program that converts the given number to a number (in base 10).
Hint - The given number could be in any base, but the base is unknown.
>>> More