Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Algorithm Generator or Constructor

Posted on 2011-03-23
6
Medium Priority
?
489 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 2000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

The Fluent Interface Design Pattern You can use the Fluent Interface (http://en.wikipedia.org/wiki/Fluent_interface) design pattern to make your PHP code easier to read and maintain.  "Fluent Interface" is an object-oriented design pattern that r…
Introduction Many of the most common information processing tasks require sorting data sets.  For example, you may want to find the largest or smallest value in a collection.  Or you may want to order the data set in numeric or alphabetical order. …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
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

916 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