At 18:29 11/08/2007, Egon Willighagen wrote:
>Peter,
>
>On 8/11/07, peter murray-rust <[EMAIL PROTECTED]> wrote:
> > * data and table driven code. Structures such as nested Ifs are often
> > better and easier expressed in tables. I picked this up from the
> > MKM2007 meeting on maths. I think there is a lot of potential here.
> > For example all our valency rules should be tabular
>
>Might you elaborate on this? What's the content supposed to be of 
>those tables?

Nothing magic. If we have:
if (a == 1) {
   if (b == 1) {
   } else if (b == 2) {
   } else {
   }
} else if (a == 2) {
   if (b == 1) {
   } else if (b == 2) {
   } else {
   }
} else {
}

we have a 3*3 table with actions in each cell.

They were particularly interested in it for proving theorems, but it 
makes sense for chemistry. Of course the table can be 
multidimensional and sparse.

P.



>Egon

Peter Murray-Rust
Unilever Centre for Molecular Sciences Informatics
University of Cambridge,
Lensfield Road,  Cambridge CB2 1EW, UK
+44-1223-763069 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Blueobelisk-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/blueobelisk-discuss

Reply via email to