Solved

Algorithm Generator or Constructor

Posted on 2011-03-23
6
469 Views
Last Modified: 2013-11-25
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.

Thanks in Advance
khonen1.jpg
0
Comment
Question by:ZURINET
  • 3
  • 3
6 Comments
 
LVL 37

Expert Comment

by:TommySzalapski
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

by:ZURINET
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

by:
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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:ZURINET
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

by:TommySzalapski
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

by:ZURINET
ID: 35202903
Hi Tommy

Thanks for your help

Found the book I was looking for

Foundations of Algorithms using java pseudocode



0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adobe Customization Wizard XI issues 26 231
How do I pass arguments in a Builder design pattern ? 10 76
Add mobile access to browser application 3 193
canBalance challenge 34 80
Introduction This article discusses the Chain of Responsibility pattern, explaining What it is;Why it is; andHow it is At the end of this article, I hope you will be able to describe the use and benefits of Chain of Responsibility.  Backgrou…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question