Go Back   Science Forums > Physical Sciences Forums > Computer Science and Technology
Reply
 
LinkBack Thread Tools
Old 05-26-2009   #71 (permalink)
Buffy's Avatar
Resident Slayer

Administrator

Location:
Sunnydale, CA
 
Buffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond repute
 



Not Ranked  0 score     
Re: Consensus call

Quote:
Originally Posted by CraigD View Post
Let’s define a sub-collection of the collection of all programs, algorithms, as programs that usually end, and produce useful data.
Cool, but I'll still argue this is insufficient, since it still allows for my stop-light "algorithm" posted earlier:
  • It's indubitably a program based on endless extant implementations.
  • It produces "useful data" insofar as it prevents crashes between moving hunks of steel
  • It stops occasionally when the power goes out, or the highway patrol is handling a special event, or it's taken out for service, but even then, the restriction is limited to "usually"...

So what are we gonna do about that "usually"? Is it a requirement or not as we define our "consensus terms?"

I have opinions of my own -- strong opinions -- but I don't always agree with them,
Buffy


----------------
"If you do not agree with anything I say, I'll not only retract it, but deny under oath that I ever said it!"
__________________________________________________ ______________-- Tom Lehrer

"No Robbie, not Europe!"


Forum Administrator
Hypography Science Forums - Science for Boys and Girls! Its not for nothing that we hang out here.
Reply With Quote
Old 05-26-2009   #72 (permalink)
stereologist's Avatar
Questioning


 



Not Ranked  0 score     
Re: Algorithms beyond programming

Buffy I would argue no because your point 3 is that the finite nature of the program is dependent on events not a part of the program. I would also propose that our point 2 is weak since the usefulness is not a part of the output of the program, but rather a secondary consequence of the program. The actual output of the program is signaling in the form of lights of different colors.

Your program would be similar to generating 30 Rs, then 4Ys, then 30Gs, and then repeating this process endlessly. A Turing machine could be made to perform this action (although not behaving as a transducer). The output of the Turing machine never ends. It isn't an algorithm. It is a program.

The generation of one cycle, 30 Rs 4 Ys and 30 Gs can be an algorithm.

I mean the main reason for these definitions is to be able to evaluate a computation. Is it correct? Is it as fast as it is possible to compute the value? Is there a way that uses less memory?
Reply With Quote
Old 05-26-2009   #73 (permalink)
Buffy's Avatar
Resident Slayer

Administrator

Location:
Sunnydale, CA
 
Buffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond repute
 



Not Ranked  0 score     
Re: Algorithms beyond programming

By your definition then, 90-odd percent of all programs in existence are not algorithms.

That's fine, but riddle me this: what is the use of such an exclusive definition?

In other words, "what problem are you trying to solve?"

An undefined problem has an infinite number of solutions,
Buffy


----------------
"If you do not agree with anything I say, I'll not only retract it, but deny under oath that I ever said it!"
__________________________________________________ ______________-- Tom Lehrer

"No Robbie, not Europe!"


Forum Administrator
Hypography Science Forums - Science for Boys and Girls! Its not for nothing that we hang out here.
Reply With Quote
Old 05-27-2009   #74 (permalink)
Qfwfq's Avatar
Exhausted Gondolier

Administrator

Location:
Floating On An Ocean Of Hydrogen
 
Qfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond repute
 



Not Ranked  0 score     
Re: Algorithms beyond programming

Perhaps my advice has been carried all to far! The essential point was to exercise a smidgen of elasticity, without each one clinging to their own convention and maybe not even stating which it is. So, it seems dicussion can now proceed.

Quote:
Originally Posted by Buffy View Post
By your definition then, 90-odd percent of all programs in existence are not algorithms.
Here's another reason why rather few programs are algorithms (perhaps much less even than your complaint):

We've been neglecting the further fact that an algorithm is understood as acting on an initial input; IOW it's all there, right from the start. Your program can use argv and argc and yet still be an algorithm. It can even be designed to read in from a file which must already be sitting there waiting. But make it interactive and it isn't really an algorithm!

Nitpicking: You'll say that one can write a program that reads stdin but then run it with < infile.txt in the command line or put it in a pipeline! Now I don't think we should be talking so much about coding issues (except illustratively) and the likes, hence I also disagree about the language dependence of the number of steps being a problem; a "step" can even be a whole sub-algorithm! It remains that a program which is basically conceived to just sit there till the next user input, HTTP request or RFID event, whatever the heck, can scarcely be called an algorithm. It may however be executing algorithms for each of those, but call it a GUI, call it a service, call it a 'bot or call it a spade.

What's that ol' Wirth said? Algorithms + datastructures = programs...


----------------
Inutil insegnŕ al mus, si piart timp, in plui si infastiděs la bestie.

Hypography Forum PITA...... er, Administrator.
Reply With Quote
Old 05-27-2009   #75 (permalink)
stereologist's Avatar
Questioning


 



Not Ranked  0 score     
Re: Algorithms beyond programming

Quote:
By your definition then, 90-odd percent of all programs in existence are not algorithms.

That's fine, but riddle me this: what is the use of such an exclusive definition?

In other words, "what problem are you trying to solve?"
At the end of the post before yours I stated:

Quote:
I mean the main reason for these definitions is to be able to evaluate a computation. Is it correct? Is it as fast as it is possible to compute the value? Is there a way that uses less memory?
I gave three reasons for separating out algorithms from programs:
1. correctness
2. speed (measure of time cost)
3. resource usage (memory for example)

It has been shown that finite state transducers cannot compute everything that a Turing machine can. It has been shown that a push down transducer (transducer based on a PDA) is equivalent to a Turing machine. The definitions restrict the possibilities, but create a series of analyzable mathematical machines.

Qfwfq. I don't think you are nitpicking, but rather pointing out how algorithms are used to construct large entities. I like the way you constructed real life examples of how costs vary across steps, and that steps can be nontrivial.
Reply With Quote
Old 05-27-2009   #76 (permalink)
maddog's Avatar
Creating


Location:
Akron, OH
 
maddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud of
 



Not Ranked  0 score     
Cool Re: Algorithms beyond programming

Quote:
Originally Posted by stereologist View Post
A transducer is a simple device that has an input and converts it to a different form in the output. So a wind mill is a transducer converting the wind into a water pump. A better example is an electric motor converting electricity into motion.
I have even a better example: We as humans beings, a member of the animal kingdom
can be transducers as we consume foodstuffs and produce excrement. It is just a different
form.
Quote:
Originally Posted by stereologist View Post
In CS a transducer converts an input into a different form. The mathematical representation is a "recognizer which emits an output string during each move made. The finite transducer is obtained by taking a finite automaton and permitting the machine to emit a string of output symbols on each move."
This quote is from p223 of Aho and Ullman.
You missed my point. It may be imho that likely in 200 years or so, the use of the
word transducer used as you describe will be found out to be totally useless. In that
vein, I will start now by NEVER using it in that way. Excuse me. I will find better ways
like "parse" -- I will find work satisfactorily as it has for the last 30 or so years.
Quote:
Originally Posted by stereologist View Post
The word transducer has a meaning which is not archaic. It is a term describing some of the mathematical machines that can be used to describe computations.
I never said archaic, unless you consider the 50's "archaic" -- why that the time period
of the origin of computer languages like FORTRAN, et al.

maddog
Reply With Quote
Old 05-27-2009   #77 (permalink)
maddog's Avatar
Creating


Location:
Akron, OH
 
maddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud of
 



Not Ranked  0 score     
Lightbulb Re: Consensus call

Quote:
Originally Posted by Buffy View Post
Cool, but I'll still argue this is insufficient, since it still allows for my stop-light "algorithm" posted earlier:
  • It's indubitably a program based on endless extant implementations.
  • It produces "useful data" insofar as it prevents crashes between moving hunks of steel
  • It stops occasionally when the power goes out, or the highway patrol is handling a special event, or it's taken out for service, but even then, the restriction is limited to "usually"...

So what are we gonna do about that "usually"? Is it a requirement or not as we define our "consensus terms?"
I bow to your greater wisdom. The Stop Light is an excellent example. Yet even the
algorithm within (it does have one) is quite simple.

(For each side - proportion so as not to have accidents)
1. Go = Green.
2. Caution = Yellow.
3. Stop = Red.
4. Return to step 1.

The "rules" of when to go to the next state can be tuned and are "usually" a timing sequence.

Quote:
Originally Posted by Buffy View Post
I have opinions of my own -- strong opinions -- but I don't always agree with them,
I love that!!!

maddog
Reply With Quote
Old 05-27-2009   #78 (permalink)
stereologist's Avatar
Questioning


 



Not Ranked  0 score     
Re: Algorithms beyond programming

Quote:
You missed my point. It may be imho that likely in 200 years or so, the use of the
word transducer used as you describe will be found out to be totally useless. In that
vein, I will start now by NEVER using it in that way. Excuse me. I will find better ways
like "parse" -- I will find work satisfactorily as it has for the last 30 or so years.
Qfwfq, I suggest it is time to lock this thread. Apparently, it is pointless to try and introduce someone to topics they were not aware of.

BTW, I have been doing this for 40 years. I've been aware of the proper meaning of parse for 40 years.
Reply With Quote
Old 05-27-2009   #79 (permalink)
Qfwfq's Avatar
Exhausted Gondolier

Administrator

Location:
Floating On An Ocean Of Hydrogen
 
Qfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond reputeQfwfq has a reputation beyond repute
 



Not Ranked  0 score     
Re: Algorithms beyond programming

Quote:
Originally Posted by stereologist View Post
Qfwfq. I don't think you are nitpicking, but rather pointing out how algorithms are used to construct large entities.
I addressed the hypothetical nitpicking myself.

Quote:
Originally Posted by maddog View Post
In that vein, I will start now by NEVER using it in that way. Excuse me. I will find better ways like "parse" -- I will find work satisfactorily as it has for the last 30 or so years.
Seems you've been misunderstanding: he isn't using it as a synonym for parse, but actually as a way of indicating something that does more than parsing (not just reporting OK or bad syntax), such as a compiler.


----------------
Inutil insegnŕ al mus, si piart timp, in plui si infastiděs la bestie.

Hypography Forum PITA...... er, Administrator.

Last edited by Qfwfq; 05-27-2009 at 09:22 AM..
Reply With Quote
Old 05-27-2009   #80 (permalink)
maddog's Avatar
Creating


Location:
Akron, OH
 
maddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud ofmaddog has much to be proud of
 



Not Ranked  0 score     
Talking Re: Algorithms beyond programming

Quote:
Originally Posted by Qfwfq View Post
Seems you've been misunderstanding: he isn't using it as a synonym for parse, but actually as a way of indicating something that does more than parsing (not just reporting OK or bad syntax), such as a compiler.
I commend you Qfwfq for capturing that nuance. Yes, am using in the context of extraction of data from an input stream (be it keyboard, file, camera, sensor, etc).
And interpretation of the same.

Stereologist, I must admit, I was not formally trained in Computer Science (though I did
take it as a minor), so I may not have taken "all" the courses as required. My major
originally was Astrophysics and transferring to Physics when I graduated (I did take all the
required Astrophysics courses though). I learned the bulk of my experience in CS on-the-job
in Aerospace/Defense.

40 years would put you at just before we landed on the moon, the HP-35C had not yet
come out yet and no actual implication of the existence of Black Holes had not yet been
discovered. The language C did not even exist yet (except as research at ATT Bell Labs). The GoF had not even published their book on Design Patterns yet. So in what
context was "transducer" ? I guess in AI, Snobol was available then, I am not sure if Lisp was.

So please close this thread. We have already beaten this horse to death a few times
already.

maddog
Reply With Quote
Reply

Bookmarks

Tags
measurements


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
programming games for TI? php111 Watercooler 0 09-02-2007 12:34 PM
vb.net Programming TheBigDog Computer Science and Technology 26 01-29-2007 03:27 PM
What programming languages do you know? Jay-qu Community Polls 27 01-26-2007 09:00 AM
Genetic Algorithms Binary_Branflakes Computer Science and Technology 17 03-10-2006 04:54 PM
Programming tarak Computer Science and Technology 33 05-18-2005 07:08 AM

» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 27.27%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 45.45%
5 Votes
I'm too macho to think a guy is sexy - 27.27%
3 Votes
Total Votes: 11
You may not vote on this poll.


All times are GMT -8. The time now is 12:46 AM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network