Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 31st, 2003, 04:38 PM
KeCHi KeCHi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 KeCHi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy I Need HELP!!

hi everybody ... i know i am very very new to this forum ... but i have been working on an assigment for 3 weeks and i did all the questions except one and this one is most important ... the professor said that the others are easy but this one will make a difference ... so i need to find out this one ... dont get mad i am not trying to force you to my assigment but i do not have any choice ... i tried but no luck so for last chance i decided to join this forum ... i hope no one offended ... so here is my question

Develop an algorithm to build following sequence:

1

11

21

1211

111221

312211

13112221

1113213211

31131211131221

13211311123113112211

......................................?

.......................................?



... i really need coorperation ... hope you understand me and help me a bit ... best regards to all ...

Reply With Quote
  #2  
Old August 31st, 2003, 07:40 PM
WineIsGood's Avatar
WineIsGood WineIsGood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: New York
Posts: 49 WineIsGood User rank is Private First Class (20 - 50 Reputation Level)WineIsGood User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 51 sec
Reputation Power: 6
You should really do your homework yourself, or else your education money is wasted and so will your input into the industry you choose. If you can't figure it out, you deserve to get no credit for the question.
-Dave

Reply With Quote
  #3  
Old September 1st, 2003, 01:23 AM
KeCHi KeCHi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 KeCHi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i did all of them except this one .... and this one is a bonus to me ... thats why i posted this one here ... if i was trying to do my homework online i will post all of the 11 questions here so that i can rid of the questions ... but the problem is no matter i try no luck with this ...

and i am aware that i deserve no credits from this one but at least ideas i need ... then i can figure out what to do

Reply With Quote
  #4  
Old September 2nd, 2003, 04:51 PM
dog135's Avatar
dog135 dog135 is offline
Doggie
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Seattle, WA
Posts: 751 dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 38 m 25 sec
Reputation Power: 7
Heh, I keep looking at those numbers, but the pattern used to insert the numbers evades me. The last digits keeps alternating from "1" to "11" which doesn't seem logical.

I hope the class you're taking teaches how to find patterns in a set of numbers. Unless you're suppose to recognize some other algorithm in the numbers that you already learned about.

Darn, now I'm going to be thinking about this all day.

Reply With Quote
  #5  
Old September 2nd, 2003, 05:00 PM
dog135's Avatar
dog135 dog135 is offline
Doggie
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Seattle, WA
Posts: 751 dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 38 m 25 sec
Reputation Power: 7
This may help you along the right path. Maybe not...

If you only consider the 1's and the number immediately proceding the 1's, then add up the 1's or multiply by the number proceding it:
(bolded numbers are ignored)

1 = 1

11 = 2

21 = 3 (2x1)

1211 = 4 (1+2*1+1)

111221 = 5 (1+1+1+2*1)

312211 = 6 (3*1+2*1+1)

13112221 = 7 (1+3*1+1+2*1)

1113213211 = 8 (1+1+1+2*1+2*1+1)

Reply With Quote
  #6  
Old September 2nd, 2003, 05:04 PM
dog135's Avatar
dog135 dog135 is offline
Doggie
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Seattle, WA
Posts: 751 dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 38 m 25 sec
Reputation Power: 7
Heh, I did a google and found the answer on a web site using the same numbers.

Now NO cheating!

Hint: It's not a math test, it's a logic test.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > I Need HELP!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT