Sorry but theres a problem with the code. For example consider 2nd line of you output. Its giving double probablity in third column (E.E)
M6: M6<-Q, E.E, IV_32
Whereas according to the __DATA__ M6 is coming directly from Q
M6 Q E
Thus correct output should be :-
M6: M6<-Q, E, II_15
To give you an intuition this line in data means that the probability of M6 coming from Q is 'E'. That is what I want in third column. If suppose M6 were coming from M76 which in turn comes from Q M6<-M76<-Q and the input data for these were
__DATA__
M6 M76 E
M76 Q E
Then in this case M6: M6<-M76<-Q, E.E, IV_32 would have been a correct output.
So basically the third column is giving wront output, due to which fourth column is also giving incorrect results as it is based on third for its input.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.