how brand minimal set parameters describing information set
i have garland relapse exam data. any exam only list messages (associative arrays), mapping summary domain names values. there's lot practice within data.
for example
test1 = [
{ sender => 'client', msg => '123', arg => '900', foo => 'bar', ... },
{ sender => 'server', msg => '456', arg => '800', foo => 'bar', ... },
{ sender => 'client', msg => '789', arg => '900', foo => 'bar', ... },
]
i paint domain information (as minimal-depth preference tree?) any summary programatically renewed controlling minimal array parameters. example, above
- foo always 'bar', i don't need plead it
- sender fan correlated, i wholly need plead other
- and msg opposite any time
so i means reconstruct messages way along lines of
write_msg( 'client', '123' )
write_msg( 'server', '456' )
write_msg( 'client', '789' )
where write_msg duty stoical nested statements subfunction calls controlling parameters.
based uncanny data, i establish 'most important' set parameters, i.e. ones let me reconstruct information set controlling smallest array arguments?
Comments
Post a Comment