Glossary entry

English term or phrase:

pseudocode

Bulgarian translation:

псевдокод

Added to glossary by 4leavedClover
May 30, 2009 07:54
15 yrs ago
English term

pseudocode

GBK English to Bulgarian Bus/Financial Computers: Software
A notation resembling a programming language but not intended for actual compilation. It usually combines some of the structure of a programming language with an informal natural-language description of the computations to be carried out. It is often produced by CASE systems as a basis for later hand coding.
Example sentences:
Chances are, if you were to go into a conference room at a software company, it would contain a white-board filled with pseudocode and flowcharts. Pseudocode and flowcharts are programmer's ways of expressing algorithms, control structures, and other programming concepts quickly and simply. (InfoWebLinks)
Generally, you should try to break each main task down into very small tasks that can each be explained with a short phrase. There may eventually be a one-to-one correlation between the lines of pseudocode and the lines of the code that you write after you have finished pseudocoding. (Minich.com)
PPP is a way of developing routines by writing pseudocode for them in the first place (not a new topic) and after that, making the pseudocode a comment in the routine (functions, procedure, method or whatever your language calls them). (CodeRookie)
Change log

May 29, 2009 14:54: changed "Kudoz queue" from "In queue" to "Public"

May 30, 2009 07:54: changed "Stage" from "Preparation" to "Submission"

Jun 2, 2009 08:54: changed "Stage" from "Submission" to "Selection"

Jun 8, 2009 13:54: changed "Stage" from "Selection" to "Completion"

Jun 8, 2009 15:48: 4leavedClover changed "Edited KOG entry" from "<a href="/profile/0">'s</a> old entry - "pseudocode"" to ""псевдокод""

Discussion

4leavedClover May 31, 2009:
Sorry, pseudocode and closure are completely different terms, i.e. the answer suggested by Vasca is irrelevant to the English term "pseudocode".

Proposed translations

+2
3 days 2 hrs
Selected

псевдокод

Definition from own experience or research:
Условен начин на описание на алгоритми, разбираем за човека. Алгоритъм, описан по този начин, трябва да се опише на език за програмиране, за да може да се изпълни от компютър.<br /><br />За справка:<br />Описанието на алгоритъм изисква средство за изразяване на последователността от стъпки, които трябва да се изпълнят. Най-общите средства за описание са: естествен език, псевдокод и формализиран език за програмиране. Естественият език е най-лек за ползване, но и най-неточен, тъй като не е строго формализиран и допуска двусмислие. Езиците за програмиране, като Pascal и С са точни, но са по-трудни за писане и разбиране. Псевдокодът е полезен, защото е по средата. Той има формализирани управляващи структури, подобно на език за програмиране, но допуска описание на отделни стъпки със средствата на естествен език. Точно тези свойства на псевдокода позволяват постъпковото разработване на един алгоритъм <br /><b><a href="http://www.technologybulgaria.com/алгоритмите-в-информатиката.html" rel="nofollow noopener" target="_blank">http://www.technologybulgaria.com/алгоритмите-в-информатикат...</a></b><br /><br />Псевдокодът не е написан на истински език за програмиране. Той се състои от прости изречения, които описват какво ще прави програмата. <br /><b><a href="http://vb.teacher.bg/unit03/frame03_04.htm" rel="nofollow noopener" target="_blank">http://vb.teacher.bg/unit03/frame03_04.htm</a></b><br /><br />Псевдокод е вид програмен код, който е написан на измислен/неконкретен/несъществуващ език с цел да се очертае структурата на даден алгоритъм или въобще решение - т.е. някаква скица на програма, без да се задълбава в детайли около език, реализация на техническите детайли и т.н.<br />Ето ти и пример:<br />Алгоритъм: пиене на бира<br />1. Купувате бирата<br />2. Намирате отварачка и я отваряте<br />3. Пиете.<br /><b><a href="http://www.hardwarebg.com/forum/archive/index.php/t-104266.html" rel="nofollow noopener" target="_blank">http://www.hardwarebg.com/forum/archive/index.php/t-104266.h...</a></b>
Example sentences:
13.1. Примери за алгоритми. Алгоритъм на Евклид. Псевдо-алгоритмичен език (псевдокод). Рекурсивни и итеративни алгоритми. (СУ )
а) описание на рекурсивно обхождане на граф в дълбочина с псевдокод (Рекурсия)
Схематично(чрез псевдокод), алгоритъмът на пълното изброяване е представен на следващите редове. (ТУ Габрово)
Peer comment(s):

agree Elena Boevska
8 mins
Благодаря!
agree Peter Grm
6 days
Благодаря!
Something went wrong...
4 KudoZ points awarded for this answer.
-1
1 day 4 hrs

псевдокод за затваряне, привидно затваряне

Pseudocode is a compact and informal high-level description of a computer programming algorithm that uses the structural conventions of some programming language, but is intended for human reading rather than machine reading. Pseudo-code typically omits details that are not essential for human understanding of the algorithm, such as variable declarations, system-specific code and subroutines.
MATLAB is very fast at parsing so the pcode function rarely makes much of a speed difference.

One situation where pcode does provide a speed benefit is for large GUI applications. In this case, many M-files must be parsed before the application becomes visible.

You can also use pcode to hide algorithms you have created in your M-file, if you need to do this for proprietary reasons.
Definition from Wikipedia:
Затваряне (или closure) в програмирането е функция, която запазва (затваря) областта на видимост, в която е дефинирана, поне докато съществува референция към нея.<br /><br />В повечето програмни езици, обектите се унищожават, при излизането от областта на видимост, в която са дефинирани. Използването на затваряне гарантира, че обектите дефинирани в неговата област на видимост няма да бъдат унищожени, докато то е използвано или реферирано.<br />В примера за функция, дефинираща област на видимост, връща затваряне, което използва локална промелива а във функцията. Както е видимо локалната промелива продължава да живее, въпреки че функцията е приключила. В повечето езици, които поддържат области на видимост, а би била унищожена при изход от функцията.<br />функция Ф()<br /> а = 5;<br /> з = затваряне<br /> а = а + 1;<br /> върни а;<br /> край;<br /> върни з;<br />край;<br />х = ф();<br />х(); // -&gt; 6<br />х(); // -&gt; 7
Example sentences:
Това е валиден код за С++ поддържат от GCC 3.7. Функция която връща сбор на елементите на вектор: int sum(const vector<int>& values) { int s = 0; void closure(int n) { s += n; } foreach(values.begin(), values.end(), closure); return s; } (wikipedia)
Creating P-Code Files You can save a preparsed version of a function or script, called P-code files, for later MATLAB sessions using the pcode function. For example, pcode average parses average.m and saves the resulting pseudocode to the file named average.p. This saves MATLAB from reparsing average.m the first time you call it in each session. MATLAB is very fast at parsing so the pcode function rarely makes much of a speed difference. One situation where pcode does provide a speed benefit is for large GUI applications. In this case, many M-files must be parsed before the application becomes visible. You can also use pcode to hide algorithms you have created in your M-file, if you need to do this for proprietary reasons. (mathlab)
Peer comment(s):

disagree Elena Boevska : Това е определение за "closure", не за "pseudocode". Единствената допирна точка е, че в статията за "closure" в Уикипедия, откъдето е копирано това, има даден пример, изписан с псевдокод.
1 day 21 hrs
Something went wrong...
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search