Click here to Skip to main content
15,885,244 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Algorithm Pin
Patrice T18-Apr-16 5:46
mvePatrice T18-Apr-16 5:46 
QuestionDealing with arbitrarily large power of 10 numbers Pin
Member 1168325115-Apr-16 3:52
Member 1168325115-Apr-16 3:52 
SuggestionRe: Dealing with arbitrarily large power of 10 numbers Pin
Richard Deeming15-Apr-16 4:21
mveRichard Deeming15-Apr-16 4:21 
GeneralRe: Dealing with arbitrarily large power of 10 numbers Pin
Member 1168325115-Apr-16 8:45
Member 1168325115-Apr-16 8:45 
AnswerRe: Dealing with arbitrarily large power of 10 numbers Pin
Eddy Vluggen15-Apr-16 5:00
professionalEddy Vluggen15-Apr-16 5:00 
AnswerRe: Dealing with arbitrarily large power of 10 numbers Pin
Kenneth Haugland15-Apr-16 14:43
mvaKenneth Haugland15-Apr-16 14:43 
AnswerRe: Dealing with arbitrarily large power of 10 numbers Pin
Mark.io5-May-16 1:56
Mark.io5-May-16 1:56 
GeneralRe: Dealing with arbitrarily large power of 10 numbers Pin
Member 116832518-May-16 22:15
Member 116832518-May-16 22:15 
Concerning the situation that might arise if you have hundreds of entities I figured that I could just do some approximations. The most important parts would be those entities that's closest to the current largest number in the bank so to speak.

If you have one entity that adds say 10^70 you it I could just go over everything below say 10^60 to calculate what to add per second for all those entities instead of doing 60 different calculations.

So far I'm not working on creating a game but this kinda grew from curiosity but I did some testing and 100 different entities, one for each level up to 10^100 was just a few ms. No graphics or anything else but even if I kept increasing it would be a while before there would be a performance hit. For a mobile app it might me more important but my home computer doesn't have a high end cpu so I was quite happy with the current performance.

There is a game called clicker heroes and the highest I ever came in that game was in the span of 10^130.

There are so many of these games out there and they mainly target mobile with in game purchases which costs exorbitant amounts of money. While I see the allure of these games where the amount of in game points you accumulate while you are idle and can just pop in every once in a while to spend and increase the gathering rate I find it hard to comprehend how people can justify dropping 100$ > for in game credits.

I'll see if I make an implementation of your suggestion of vectors if I got the time but it's always interesting to compare different solutions. If I do I'll make a comparison with one of the string based methods too.
AnswerRe: Dealing with arbitrarily large power of 10 numbers Pin
Daniel Pfeffer8-May-16 22:36
professionalDaniel Pfeffer8-May-16 22:36 
Question~difficult~ finding combination from K arrays Pin
Member 1245958914-Apr-16 6:27
Member 1245958914-Apr-16 6:27 
GeneralRe: ~difficult~ finding combination from K arrays Pin
Richard MacCutchan14-Apr-16 20:43
mveRichard MacCutchan14-Apr-16 20:43 
QuestionCompression algorithms Pin
Member 121468278-Apr-16 9:38
Member 121468278-Apr-16 9:38 
AnswerRe: Compression algorithms Pin
Dave Kreskowiak8-Apr-16 10:37
mveDave Kreskowiak8-Apr-16 10:37 
GeneralRe: Compression algorithms Pin
Patrice T9-Apr-16 0:54
mvePatrice T9-Apr-16 0:54 
AnswerRe: Compression algorithms Pin
Patrice T9-Apr-16 0:54
mvePatrice T9-Apr-16 0:54 
AnswerRe: Compression algorithms Pin
Alan Balkany9-May-16 4:46
Alan Balkany9-May-16 4:46 
AnswerRe: Compression algorithms Pin
Rupinder Singh thind27-Jun-16 1:37
Rupinder Singh thind27-Jun-16 1:37 
Questionwhich mathematical subjects I need to know for learning algorithms Pin
Mur25018-Apr-16 6:15
Mur25018-Apr-16 6:15 
AnswerRe: which mathematical subjects I need to know for learning algorithms Pin
Richard MacCutchan8-Apr-16 6:27
mveRichard MacCutchan8-Apr-16 6:27 
GeneralRe: which mathematical subjects I need to know for learning algorithms Pin
Mur25018-Apr-16 6:40
Mur25018-Apr-16 6:40 
GeneralRe: which mathematical subjects I need to know for learning algorithms Pin
Richard MacCutchan8-Apr-16 7:11
mveRichard MacCutchan8-Apr-16 7:11 
AnswerRe: which mathematical subjects I need to know for learning algorithms Pin
Sascha Lefèvre8-Apr-16 22:02
professionalSascha Lefèvre8-Apr-16 22:02 
AnswerRe: which mathematical subjects I need to know for learning algorithms Pin
Mark.io5-May-16 2:11
Mark.io5-May-16 2:11 
AnswerRe: which mathematical subjects I need to know for learning algorithms Pin
Alan Balkany9-May-16 4:50
Alan Balkany9-May-16 4:50 
QuestionAlgorithm for Tournament tree Pin
Member 122971796-Apr-16 6:38
Member 122971796-Apr-16 6:38 

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.