Click here to Skip to main content
15,902,276 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: ALGORITHMS FOR SUPERVISED LEARNING TECHNIQUE Pin
Alan Balkany27-Jan-09 11:37
Alan Balkany27-Jan-09 11:37 
Questiontarverse binary tree Pin
abu rakan26-Jan-09 1:02
abu rakan26-Jan-09 1:02 
AnswerRe: tarverse binary tree Pin
musefan26-Jan-09 3:03
musefan26-Jan-09 3:03 
GeneralRe: tarverse binary tree Pin
abu rakan26-Jan-09 10:29
abu rakan26-Jan-09 10:29 
GeneralRe: tarverse binary tree Pin
Alan Balkany27-Jan-09 11:35
Alan Balkany27-Jan-09 11:35 
AnswerRe: tarverse binary tree Pin
Alan Balkany26-Jan-09 3:54
Alan Balkany26-Jan-09 3:54 
AnswerRe: tarverse binary tree Pin
richardw4812-Feb-09 21:40
richardw4812-Feb-09 21:40 
QuestionEven Grouping Algorithm Pin
Kyudos19-Jan-09 9:52
Kyudos19-Jan-09 9:52 
I'm sure there must be a reasonably simple way to do this.....probably something recursive.

I have X apples and want to split them into groups with a maximum M apples in each group. I want to have the minimum number of groups, but for each group to be 'as equal as possible'.

I think the min number of groups is simply CEILING(X/M, 1)

e.g.,

X = 9, M = 4, groups would be 3, 3, 3 (not 4, 4, 1)

X = 137, M = 25 :: (23, 23, 23, 23, 23, 22)

X = 23, M = 5 :: (5, 5, 5, 4, 4)

etc.
GeneralRe: Even Grouping Algorithm Pin
Luc Pattyn19-Jan-09 10:45
sitebuilderLuc Pattyn19-Jan-09 10:45 
GeneralRe: Even Grouping Algorithm Pin
Kyudos19-Jan-09 12:11
Kyudos19-Jan-09 12:11 
GeneralRe: Even Grouping Algorithm Pin
Luc Pattyn19-Jan-09 12:17
sitebuilderLuc Pattyn19-Jan-09 12:17 
AnswerA different grouping question Pin
supercat919-Jan-09 13:38
supercat919-Jan-09 13:38 
GeneralOT Pin
Luc Pattyn19-Jan-09 14:12
sitebuilderLuc Pattyn19-Jan-09 14:12 
QuestionFree Space calculation in NTFS partitions Pin
becktoan18-Jan-09 22:36
becktoan18-Jan-09 22:36 
AnswerRe: Free Space calculation in NTFS partitions Pin
C Change27-Jan-09 1:43
C Change27-Jan-09 1:43 
QuestionFinding points with maximial separation Pin
Wjousts14-Jan-09 3:57
Wjousts14-Jan-09 3:57 
AnswerRe: Finding points with maximial separation Pin
Alan Balkany14-Jan-09 4:15
Alan Balkany14-Jan-09 4:15 
GeneralRe: Finding points with maximial separation Pin
Wjousts14-Jan-09 7:54
Wjousts14-Jan-09 7:54 
GeneralRe: Finding points with maximial separation Pin
Alan Balkany14-Jan-09 9:56
Alan Balkany14-Jan-09 9:56 
GeneralRe: Finding points with maximial separation Pin
Luc Pattyn14-Jan-09 8:59
sitebuilderLuc Pattyn14-Jan-09 8:59 
AnswerRe: Finding points with maximial separation Pin
User 98852-Feb-09 3:22
User 98852-Feb-09 3:22 
QuestionDX-Ball game in java Language Pin
1uye8-Jan-09 5:38
1uye8-Jan-09 5:38 
AnswerRe: DX-Ball game in java Language Pin
EliottA8-Jan-09 6:38
EliottA8-Jan-09 6:38 
AnswerRe: DX-Ball game in java Language Pin
HosamAly8-Jan-09 19:58
HosamAly8-Jan-09 19:58 
QuestionOPT Replacement Policy [modified] Pin
Mustafa Ismail Mustafa4-Jan-09 22:46
Mustafa Ismail Mustafa4-Jan-09 22:46 

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.