CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Recursive functions (an algorithm question): Edit Log



siskos1
Novice

Mar 24, 2010, 9:39 PM


Views: 2504
Recursive functions (an algorithm question)

hello everybody; i am stuck in a problem. it is a kind of dynamic programming. it is a string alignment problem but it resembles like;

"writing all possible combinations of numbers that can be divided by 3 and/or 4"

for up to 12;

12 9 8 6 4 3 / 12 9 8 6 4/ 12 9 8 6 3/ ..../ 12 8 6 4/ .../ 9 6 4/... / 6 4 3/ 6 4/ 6 3/ 4 3/ 4 / 3 /

all combinations. if you have any suggestions or can show me similar problems, i will be pleased. thanks in advance.

in fact real question is like printing out all possible combinations that doesnt have consecutive 4 missing numbers in it. any help will be great.


(This post was edited by siskos1 on Mar 24, 2010, 9:42 PM)


Edit Log:
Post edited by siskos1 (Novice) on Mar 24, 2010, 9:42 PM
Post edited by siskos1 (Novice) on Mar 24, 2010, 9:42 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives