Solved

Algorithm Generator or Constructor

Posted on 2011-03-23
6
466 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
format the code in java 6 86
haveThree challenge 22 114
squareUp  challenge 22 132
mapAB Challlenge 35 126
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
This article will show, step by step, how to integrate R code into a R Sweave document
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now