Go Back   Science Forums > Physical Sciences Forums > Computer Science and Technology
Reply
 
LinkBack Thread Tools
Old 04-21-2009   #31 (permalink)
stereologist's Avatar
Questioning


 



Not Ranked  0 score     
Re: Algorithms beyond programming

You're right. Typical FSM applications find the pieces of the input, but the relationships between those pieces. I misunderstood your post. Sorry about that.
Reply With Quote
Old 05-13-2009   #32 (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 SidewalkCynic View Post
I recently learned that algorithm is a word being used without a definite defintion, as seems to be the case of a lot of terms I have been analyzing.

Anyway, I am wondering about this passage that algorithms and it seemingly exercised in fields beyond computer programming.


There is no reference, anybody able to direct me toward any?
You have everything you need in the Wiki definition of Algorithm to answer your question.
If this is not enough to be satisfactory, look up Buffy's post #9 in this thread. Enuff' said.

maddog
Reply With Quote
Old 05-13-2009   #33 (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 Pyrotex View Post
I've been programming for 30+ years, and I have to agree with the above.
An algorithm is a specific set of instructions that, when executed, will result in a specific end-state or solution.
An algorithm may be expressed in technical English; when it is expressed in a specific computer language, it is often called a "routine" or "program" or "script".
The description of what the algorithm is supposed to accomplish, under all expected conditions, is the
"set of requirements" or the "specifications".
The general term for creating algorithms is "coding", especially if the algorithm is being created in a specific computer language. If it's being created in technical English, it is sometimes called "pseudo-coding".
Algorithm has many synonyms, such as recipe, instructions, procedure, process, especially when used in a non-computer context.
Pyrotex,

You may have a year or so on me. I agree with you on all you said with one point
which I have highlighted. No that I disagree with it. It is just that Buffy's example in
post #9 constitutes an algorithm by even your definition with the last statement in
essence
"got to step 1" or repeat.
This is in a sense a terminating case that just starts over.

maddog
Reply With Quote
Old 05-13-2009   #34 (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: Algorithms beyond programming

Quote:
Originally Posted by stereologist View Post
The stopping criteria is part of the definition used in the theory of algorithms. Here is the Wikipedia page.
Algorithm - Wikipedia, the free encyclopedia

It says "eventually terminating in an end-state".

An infinite loop as mentioned several times here is not an algorithm. It may be a program, but not an algorithm.
I was looking at that Wiki article. You also forgot to mention one other statement in the
same article, under the heading Termination.

Quote:
Some writers restrict the definition of algorithm to procedures that eventually finish.
Which implies that some do not. This could construe that Algorithm includes both
interpretations: "to endless loop or not to endless loop, that is the question."



maddog
Reply With Quote
Old 05-13-2009   #35 (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 stereologist View Post
Still, the issue of termination is an important consideration in the definition of algorithm. Otherwise, it would not have been discussed.
Since all books I've used on the subject of algorithms include termination as a part of the algorithm definition I suspect that allowing nonterminating procedures to be part of algorithms makes the definition not useful.
As Minsky pointed out, if you don't know what the answer is, then what do you do.
Consider the embedded code with the modern Microwave. It basically functions until you
turn it off, the power goes out or you find some way to reset it (funny button in the back).
The algorithm here takes each button press and processes it according to some preset set
of rules which were encoded. So any termination here is nonstandard. Yes it is a program also.
As Pyrotex said earlier, Algorithms are often expressed in "psuedo-code". Termination is
not always the focus. Some people restrict algorithms to require an end-state, Not All.

maddog
Reply With Quote
Old 05-13-2009   #36 (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
To be honest no. It is provable that there is no finite decimal expansion for pi or sqrt(2). So no algorithm can be written that computes these values.

What's wrong with process, procedure, computation, method, technique, method, routine, or operation?
What if I define an "algrorithm" for computing \pi to arbitrary precision.
If I were to set that "precision" to be "exact" and I could continue computing to that
precision, my "algorithm" would terminate.
Periodically it produces output of successive answers. Does this program not ending (if I
choose), make the algorithm that designed it "not an algorithm" ???
This is often the practice at various Scientific Computing Centers around the world that in
their "idle time" they compute Primes. It is useful and it never ends (there is always more
primes). It is the operating system that suspend this task at the end of its time slice
to run other tasks.

Sometime the "answer" is not at the "end of the journey", it is getting there or the "journey"
itself.

maddog

Last edited by maddog; 05-13-2009 at 02:47 PM.. Reason: Typo
Reply With Quote
Old 05-13-2009   #37 (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
The term parse as you use it Pyrotex is incorrect. To parse is to identify the relationship between the words or parts of a sentence. A parser accepts and rejects input.

The FSM is an automaton that is capable of parsing what are known as linear grammars. These are simple grammars. Push down automatons are required for the next level of grammar complexity called the context free grammars.

I'm not surprised that you have not heard parse used correctly. It rarely is.

Another example of the misuse of language is found in a company where they told people to "solution the problem." No one solved problems there. I always imagined the bosses stirring large vats of liquid trying to create solutions.
I believe that Pyrotex was using the definition of "parse" as similar to that in Wiki
Parsing - Wikipedia, the free encyclopedia
which would be my definition as well.
I was recently using C# code where I was needing to get IP address from a string as
"192.168.13.4". Microsofts DotNet has a neat feature called Parse that will decode this
address into a C# simple type as long.

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


 



Not Ranked  0 score     
Re: Algorithms beyond programming

Just because MS also misuses the term parse does not mean anything. MS is notorious for doing things their way. And I am familiar with lots of instances of the misuse of the term parse. And you admit you misuse the term parse and that is par for the course.
Reply With Quote
Old 05-13-2009   #39 (permalink)
stereologist's Avatar
Questioning


 



Not Ranked  0 score     
Re: Algorithms beyond programming

As far as algorithm goes, you mention things such as finding primes. I suggest that each instance of finding a prime is an algorithm. The non-ending loop is not an algorithm.

I also suggest that you be wary of the Wiki. It has no more correctness than this forum.
Reply With Quote
Old 05-14-2009   #40 (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     
Exclamation Re: Algorithms beyond programming

Quote:
Originally Posted by stereologist View Post
Just because MS also misuses the term parse does not mean anything. MS is notorious for doing things their way. And I am familiar with lots of instances of the misuse of the term parse. And you admit you misuse the term parse and that is par for the course.
I will agree that MS does far short of the mark as reputable as to correctness of terms and
such.

I admitted to "misuse" of the term "parse" ? When.

Aren't we talking "context" here...

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 - 30.00%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 40.00%
4 Votes
I'm too macho to think a guy is sexy - 30.00%
3 Votes
Total Votes: 10
You may not vote on this poll.


All times are GMT -8. The time now is 08:22 PM.

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