Click here to Skip to main content
16,020,417 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Random number generator Pin
Mark Churchill10-Jul-08 14:47
Mark Churchill10-Jul-08 14:47 
AnswerRe: Random number generator Pin
cp987611-Jul-08 0:44
cp987611-Jul-08 0:44 
AnswerRe: Random number generator Pin
yassir hannoun19-Jul-08 2:42
yassir hannoun19-Jul-08 2:42 
GeneralRe: Random number generator Pin
PIEBALDconsult9-Aug-08 19:28
mvePIEBALDconsult9-Aug-08 19:28 
GeneralRe: Random number generator Pin
yassir hannoun9-Aug-08 23:39
yassir hannoun9-Aug-08 23:39 
GeneralRe: Random number generator Pin
PIEBALDconsult10-Aug-08 3:10
mvePIEBALDconsult10-Aug-08 3:10 
QuestionFormatting text to a pyramid shape Pin
KaptinKrunch9-Jul-08 10:09
KaptinKrunch9-Jul-08 10:09 
AnswerRe: Formatting text to a pyramid shape Pin
Alan Balkany11-Jul-08 9:23
Alan Balkany11-Jul-08 9:23 
One approach:

1. Put all the text into an array of words (assuming you don't want to split words to fit the pyramid).

2. Write a function that takes a row number and gives the width of the pyramid at that row. (This will depend on the vertex angle of your pyramid.)

3. For each row, construct a string out of the next words that haven't been used yet that minimizes the difference between the string length and that pyramid row width. (It could go over or under the row width.)

4. Center this string at the pyramid row.

5. Repeat until all the words have been used.
QuestionInverse of NORMSDIST function Pin
sumit70343-Jul-08 18:10
sumit70343-Jul-08 18:10 
AnswerRe: Inverse of NORMSDIST function Pin
Dan3-Jul-08 18:12
Dan3-Jul-08 18:12 
GeneralRe: Inverse of NORMSDIST function Pin
sumit70343-Jul-08 18:38
sumit70343-Jul-08 18:38 
GeneralRe: Inverse of NORMSDIST function Pin
73Zeppelin3-Jul-08 21:34
73Zeppelin3-Jul-08 21:34 
AnswerRe: Inverse of NORMSDIST function Pin
cp98763-Jul-08 18:43
cp98763-Jul-08 18:43 
GeneralRe: Inverse of NORMSDIST function Pin
sumit70343-Jul-08 19:40
sumit70343-Jul-08 19:40 
GeneralRe: Inverse of NORMSDIST function Pin
cp98763-Jul-08 19:51
cp98763-Jul-08 19:51 
AnswerRe: Inverse of NORMSDIST function Pin
73Zeppelin3-Jul-08 21:43
73Zeppelin3-Jul-08 21:43 
GeneralRe: Inverse of NORMSDIST function Pin
Paul Conrad23-Jul-08 12:18
professionalPaul Conrad23-Jul-08 12:18 
QuestionNORMSDIST function Pin
sumit70342-Jul-08 22:28
sumit70342-Jul-08 22:28 
GeneralI know, Pin
CPallini2-Jul-08 22:51
mveCPallini2-Jul-08 22:51 
GeneralRe: I know, Pin
sumit70342-Jul-08 23:50
sumit70342-Jul-08 23:50 
QuestionRe: I know, Pin
CPallini2-Jul-08 23:54
mveCPallini2-Jul-08 23:54 
AnswerRe: I know, Pin
sumit70343-Jul-08 0:04
sumit70343-Jul-08 0:04 
QuestionRe: I know, Pin
CPallini3-Jul-08 0:11
mveCPallini3-Jul-08 0:11 
AnswerRe: I know, Pin
sumit70343-Jul-08 0:28
sumit70343-Jul-08 0:28 
GeneralRe: I know, Pin
cp98763-Jul-08 0:52
cp98763-Jul-08 0:52 

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.