Wordsmith Talk |
About Us | What's New | Search | Site Map | Contact Us | |||
Register Log In Wordsmith.org Forums General Topics Q&A about words algorithm, routine
Previous Thread
Next Thread
Print Thread
I agree with the main point.
routine == procedure (routine is identical to procedure)
routine ~= algorithm (routine is approximately algorithm)
Routines (procedures) are implementions.
Algorithms are conceptual.
Routines implement algorithms.
I agree that algorithms are conceptual, but not that they're more creative.
"whereas procedure or routine indicates the process"
To me process has a definite meaning that is more than just routine. A process is a bit of code, with memory allocated to it, a name-space assigned to it, and in the list of processes the OS is currently executing (but possibly currently swapped out).
I think it's approximately the same as routine, but even more concrete
Algorithm is more conceptual than routine.
Routine is more conceptual than process.
I read algorithms in English (or pseudocode).
I read routines in the source Language (C, FORTRAN).
I can't actually "read" a process without doing a memory dump.
Using a functional programming paradigm (instead of OO paradigm) -
Start with a problem definition.
Break it into steps (create an algorithm).
Translate the algorithm to higher level code. (program composed of routines/ procedures)
Translate the higher level code to machine code (possibly through some middle step).
Tell the OS to execute the (machine) code
The OS allocates memory for the code, loads in program, setting registers as appropriate, adds it to current list of tasks and maybe a little more bookkeeping. At this point our algorithm is embodied in a process.
That's for compiled languages. Scripting languages are a little different, as are languages that use a virtual machines or some other kind of byte codes, like Java.
Last edited by TheFallibleFiend; 11/08/06 04:40 PM.
Entire Thread Subject Posted By Posted algorithm, routine dalehileman 11/07/06 01:26 PM Re: algorithm, routine Aramis 11/07/06 06:24 PM Re: algorithm, routine ParkinT 11/07/06 06:39 PM Re: algorithm, routine TheFallibleFiend 11/07/06 06:41 PM Re: algorithm, routine dalehileman 11/07/06 06:51 PM Re: algorithm, routine TheFallibleFiend 11/08/06 01:50 PM Re: algorithm, routine ParkinT 11/08/06 02:01 PM Re: algorithm, routine TheFallibleFiend 11/08/06 02:43 PM Re: algorithm, routine dalehileman 11/08/06 03:50 PM Re: algorithm, routine zmjezhd 11/08/06 04:41 PM Re: algorithm, routine ParkinT 11/10/06 01:41 PM Re: algorithm, routine TheFallibleFiend 11/10/06 09:32 PM
Moderated by Jackie
Link Copied to Clipboard
Forum Statistics Forums16Topics13,913Posts229,409Members9,182 Most Online3,341
Dec 9th, 2011
Newest Members Ineffable, ddrinnan, TRIALNERRA, befuddledmind, KILL_YOUR_SUV
9,182 Registered Users
Who's Online Now 1 members (A C Bowden), 803 guests, and 2 robots. Key: Admin, Global Mod, Mod
Top Posters(30 Days) A C Bowden 30
Top Posters wwh 13,858Faldage 13,803Jackie 11,613wofahulicodoc 10,582tsuwm 10,542LukeJavan8 9,922Buffalo Shrdlu 7,210AnnaStrophic 6,511Wordwind 6,296of troy 5,400
Forum Rules · Mark All Read Contact Us · Forum Help · Wordsmith.org