Click here to Skip to main content
15,560,842 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionFinding possible combinations for tetris-like cages Pin
vinaysingh8424-Sep-20 15:25
vinaysingh8424-Sep-20 15:25 
AnswerRe: Finding possible combinations for tetris-like cages Pin
Gerry Schmitz25-Sep-20 8:41
mveGerry Schmitz25-Sep-20 8:41 
AnswerRe: Finding possible combinations for tetris-like cages Pin
vinaysingh8429-Sep-20 14:15
vinaysingh8429-Sep-20 14:15 
QuestionCalculate time complexity step by step of given two program program Pin
Member 1151248623-Sep-20 1:22
Member 1151248623-Sep-20 1:22 
AnswerRe: Calculate time complexity step by step of given two program program Pin
Richard MacCutchan23-Sep-20 4:34
mveRichard MacCutchan23-Sep-20 4:34 
AnswerRe: Calculate time complexity step by step of given two program program Pin
trønderen23-Sep-20 5:07
trønderen23-Sep-20 5:07 
AnswerRe: Calculate time complexity step by step of given two program program Pin
Gerry Schmitz24-Sep-20 14:01
mveGerry Schmitz24-Sep-20 14:01 
QuestionRandom File & Folder Names Pin
Richard Andrew x6422-Sep-20 11:42
professionalRichard Andrew x6422-Sep-20 11:42 
I need a routine that will generate a random names for files and folders. As long as they are valid file/folder names it doesn't matter what it is.

I have been thinking up several different ways to do this, but I'm wondering what the community thinks is the best way to do this.

I thought about the Windows API that generates a unique temporary file, but technically that file is unique only within the temp directory.

I thought about generating Guids, but that seems to be frying an egg with a nuclear reactor.

What do you think?



The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: Random File & Folder Names Pin
Victor Nijegorodov22-Sep-20 11:56
Victor Nijegorodov22-Sep-20 11:56 
GeneralRe: Random File & Folder Names Pin
Richard Andrew x6422-Sep-20 12:06
professionalRichard Andrew x6422-Sep-20 12:06 
QuestionHow can I calculate time complexity and compare between given two algorithms? Pin
Member 1151248618-Sep-20 19:12
Member 1151248618-Sep-20 19:12 
QuestionRe: How can I calculate time complexity and compare between given two algorithms? Pin
Richard MacCutchan18-Sep-20 22:42
mveRichard MacCutchan18-Sep-20 22:42 
AnswerRe: How can I calculate time complexity and compare between given two algorithms? Pin
Member 1151248619-Sep-20 1:45
Member 1151248619-Sep-20 1:45 
AnswerRe: How can I calculate time complexity and compare between given two algorithms? Pin
trønderen19-Sep-20 3:43
trønderen19-Sep-20 3:43 
GeneralRe: How can I calculate time complexity and compare between given two algorithms? Pin
Richard MacCutchan19-Sep-20 4:01
mveRichard MacCutchan19-Sep-20 4:01 
GeneralRe: How can I calculate time complexity and compare between given two algorithms? Pin
trønderen19-Sep-20 8:06
trønderen19-Sep-20 8:06 
GeneralRe: How can I calculate time complexity and compare between given two algorithms? Pin
Richard MacCutchan19-Sep-20 22:05
mveRichard MacCutchan19-Sep-20 22:05 
AnswerRe: How can I calculate time complexity and compare between given two algorithms? Pin
Sandeep Mewara19-Sep-20 1:12
mveSandeep Mewara19-Sep-20 1:12 
GeneralRe: How can I calculate time complexity and compare between given two algorithms? Pin
Member 1151248619-Sep-20 1:55
Member 1151248619-Sep-20 1:55 
GeneralRe: How can I calculate time complexity and compare between given two algorithms? Pin
Gerry Schmitz19-Sep-20 4:00
mveGerry Schmitz19-Sep-20 4:00 
GeneralRe: How can I calculate time complexity and compare between given two algorithms? Pin
trønderen19-Sep-20 8:03
trønderen19-Sep-20 8:03 
GeneralRe: How can I calculate time complexity and compare between given two algorithms? Pin
Gerry Schmitz20-Sep-20 5:52
mveGerry Schmitz20-Sep-20 5:52 
QuestionMy implementation of Eratosthenes sieve is horribly slow. But why? Pin
Member 149328737-Sep-20 23:00
Member 149328737-Sep-20 23:00 
AnswerRe: My implementation of Eratosthenes sieve is horribly slow. But why? Pin
Richard MacCutchan7-Sep-20 23:38
mveRichard MacCutchan7-Sep-20 23:38 
GeneralRe: My implementation of Eratosthenes sieve is horribly slow. But why? Pin
Richard Deeming8-Sep-20 0:59
mveRichard Deeming8-Sep-20 0:59 

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.