Click here to Skip to main content
15,890,557 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRegarding pleas, requests, begging,etc... for urgent homework PinPopular
73Zeppelin13-Mar-09 22:20
73Zeppelin13-Mar-09 22:20 
GeneralRe: Regarding pleas, requests, begging,etc... for urgent homework Pin
CPallini6-Apr-09 21:48
mveCPallini6-Apr-09 21:48 
QuestionContent extractor Pin
uprndra11-Mar-09 20:26
uprndra11-Mar-09 20:26 
AnswerTokenize, then parse Pin
73Zeppelin13-Mar-09 22:23
73Zeppelin13-Mar-09 22:23 
GeneralRe: Tokenize, then parse Pin
uprndra14-Mar-09 4:30
uprndra14-Mar-09 4:30 
GeneralRe: Tokenize, then parse Pin
73Zeppelin15-Mar-09 21:07
73Zeppelin15-Mar-09 21:07 
QuestionDividing groups of objects into sets Pin
supercat910-Mar-09 13:35
supercat910-Mar-09 13:35 
AnswerRe: Dividing groups of objects into sets Pin
Alan Balkany11-Mar-09 4:10
Alan Balkany11-Mar-09 4:10 
There are many possible approaches, and it's possible there's no solution for a given set of bitmaps.

The problem is in partitioning the bitmaps into the four sets, which suggests a kind of cluster analysis may be helpful.

1. Make a 100 x 100 integer array with rows and columns representing the bitmaps.
2. For row r, and column c, set the value of the cell to the number of rows bitmap r has in common with bitmap c.
3. Go through the array in descending cell order, i.e. start with the highest cell value, and link the two bitmaps corresponding to this cell, to form a cluster. Note that if both bitmaps are already in clusters, this operation will combine the clusters into a bigger cluster. But DON'T do the combination if the total number of unique rows from the two clusters is greater than 128 (since it wouldn't fit into one set.)
4. When you can no longer make any more clusters, assign the four largest clusters to the four sets.
5. Assign the remaining bitmaps to the four sets, picking the set that already has the most rows in common with the bitmap being assigned.

This will cluster the bitmaps that have the most rows in common, making efficient use of your four sets. While not optimal, this will give you a decent solution.
GeneralRe: Dividing groups of objects into sets Pin
supercat911-Mar-09 7:08
supercat911-Mar-09 7:08 
Questioncharacter recognition Pin
Swati Khanna10-Mar-09 8:20
Swati Khanna10-Mar-09 8:20 
AnswerRe: character recognition Pin
Alan Balkany11-Mar-09 3:46
Alan Balkany11-Mar-09 3:46 
GeneralRe: character recognition Pin
Swati Khanna11-Mar-09 10:53
Swati Khanna11-Mar-09 10:53 
GeneralRe: character recognition Pin
Swati Khanna11-Mar-09 10:55
Swati Khanna11-Mar-09 10:55 
GeneralRe: character recognition Pin
Alan Balkany11-Mar-09 11:16
Alan Balkany11-Mar-09 11:16 
AnswerRe: character recognition Pin
PredictorX21-Mar-09 12:16
PredictorX21-Mar-09 12:16 
QuestionPre Fetching Global Variables Pin
War Hawk8-Mar-09 8:26
War Hawk8-Mar-09 8:26 
AnswerRe: Pre Fetching Global Variables PinPopular
Pete O'Hanlon8-Mar-09 12:30
mvePete O'Hanlon8-Mar-09 12:30 
QuestionCalculating a width and height, not square root. Pin
Cloughy7-Mar-09 4:19
Cloughy7-Mar-09 4:19 
AnswerRe: Calculating a width and height, not square root. Pin
73Zeppelin7-Mar-09 4:37
73Zeppelin7-Mar-09 4:37 
GeneralRe: Calculating a width and height, not square root. Pin
Luc Pattyn7-Mar-09 5:22
sitebuilderLuc Pattyn7-Mar-09 5:22 
GeneralRe: Calculating a width and height, not square root. Pin
Cloughy7-Mar-09 5:25
Cloughy7-Mar-09 5:25 
GeneralRe: Calculating a width and height, not square root. Pin
Yusuf7-Mar-09 13:23
Yusuf7-Mar-09 13:23 
AnswerRe: Calculating a width and height, not square root. Pin
Cloughy7-Mar-09 5:27
Cloughy7-Mar-09 5:27 
GeneralRe: Calculating a width and height, not square root. Pin
Luc Pattyn7-Mar-09 5:34
sitebuilderLuc Pattyn7-Mar-09 5:34 
GeneralRe: Calculating a width and height, not square root. Pin
Cloughy7-Mar-09 6:04
Cloughy7-Mar-09 6:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.