Solved

# Algorithm Generator or Constructor

Posted on 2011-03-23
480 Views
Hi all,

I looking for a tool or tutorial that will help me convert this Algorithm
to machine readable or Description logic or flow chart diagram.

khonen1.jpg
0
Question by:ZURINET
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 3
• 3

LVL 37

Expert Comment

ID: 35201447
That's not an algorithm. It's just an equation.
If you want it as a flow chart it's a simple loop.
Every time t increases by 1 you recalculate w(t) using the previous value and the current x. The gamma, g, o, k thing is a constant right? Or do they change?
You don't need any kind of tutorial. You can do it just by inspection. If you need more direction, let me know.
0

Author Comment

ID: 35201947
Hi Tommy

I need to have it displays in aPseudocode eg.

<variable> = <expression>

IF <condition>
DO stuff;
ELSE
DO other stuff;

WHILE <condition>
DO stuff;

for <variable> from <first value> to <last value> by <step>
DO stuff with variable;

function <function name>(<arguments>)
DO stuff with arguments;
return something;

<function name>(<arguments>)    // Function call
0

LVL 37

Accepted Solution

TommySzalapski earned 500 total points
ID: 35202154
Okay, I'll assume that X and W are arrays and t goes from 0 to maxT. I assume you have X already

constantVal = gamma*g(o,k)

W[0] = initialValue

for t from 1 to maxT
W[t] = W[t-1] + constantVal*(X[t-1] - W[t-1])

return W
0

Author Comment

ID: 35202299
Thanks looks better now
I found some Pseudocode website

http://users.csc.calpoly.edu/~jdalbey/SWE/pdl_std.html

Just one more question
how can I express this learning Logic

see attached picture

Regards
LearningProcess.jpg
0

LVL 37

Expert Comment

ID: 35202499
Those are all constants as far as I can tell. Are both of the wi variables the same value?
It looks like you just need
W[ i] = A[t]*(x-W[ i])*U(Y[ i])
0

Author Comment

ID: 35202903
Hi Tommy

Found the book I was looking for

Foundations of Algorithms using java pseudocode

0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dependencies in Software Design In software development, the idea of dependencies (http://en.wikipedia.org/wiki/Coupling_%28computer_programming%29) is an issue of some importance. This article seeks to explain what dependencies are and where they …
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
###### Suggested Courses
Course of the Month4 days, 16 hours left to enroll