请输入您要查询的百科知识:

 

词条 ALGO
释义

  1. Example

      Remarks  

  2. See also

  3. External links

{{about|a programming language|the Greek deity|Algos|the concept in mathematics and computer science|Algorithm|the term used in financial markets|Algorithmic trading}}{{no footnotes|date=October 2016}}

ALGO is an algebraic programming language developed between 1959 and 1961 for the Bendix G-15 computer.

ALGO was one of several programming languages inspired by the Preliminary Report on the International Algorithmic Language written in Zürich in 1958. This report underwent several modifications before becoming the Revised Report on which most ALGOL implementations are based. As a result, ALGO and other early "ALGOLs" have a very different syntax from ALGOL 60.

Other languages

Example

Here is the Trabb Pardo-Knuth algorithm in ALGO:

TITLE TRABB PARDO-KNUTH ALGORITHM

SUBSCript I,J

DATA A(11)

FORMAt FI(2DT), FLARGE(3D)

PROCEDURE F(T=Z)

BEGIN

Z=SQRT(ABS(T))+5*T^3

END

FOR I=0(1)10

A[I]=KEYBD

FOR J=0(1)10 BEGIN

I=J-10

F(A[I]=Y)

PRINT(FI)=I

IF Y > 400

GO TO LARGE

PRINT(FL)=Y

GO TO NEXT

LARGE: PRINT(FLARGE)=999

NEXT: CARR(1) END

2END

Remarks

{{Ordered list
| A title is the only type of comment allowed. Line numbers were inserted by the editor.
| Integer data type. The lower-case letters are not typos, but reflect the way in which ALGO code was presented in the original documentation.
| Only the size of an array can be specified, lower bound is always zero.
| The first format calls for a two-digit number followed by a tab, the second for a three digit number.
| The syntax of ALGO's procedure implementations is slightly different from that given in the Zurich report. Functions as defined by the Zürich report are not implemented.
| item6_value=9 | The syntax here is from the Zürich report and is also consistent with various 1950s-era autocodes.
| KEYBD reads a numeric value from the terminal.}}

See also

{{Wiktionary|algo}}
  • ALGOL 58
  • ALGOL 60

External links

  • [https://web.archive.org/web/20050131135150/http://www.piercefuller.com/collect/bendix/algo6008.pdf ALGO manual (PDF)]
  • [https://web.archive.org/web/20041204060928/http://members.iinet.net.au/~dgreen/docs.html Other documents on ALGO and the G-15]

1 : ALGOL 58 dialect

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 1:39:53