Solved

Algorithm Generator or Constructor

Posted on 2011-03-23
6
473 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
[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
  • Learn & ask questions
  • 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
Industry Leaders: 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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordsFront challenge 8 102
mapShare challenge 13 146
wordappend challenge 8 221
Android development question 2 76
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…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

763 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