Group 3 Maximum Depth of Nesting

Group 3 Maximum Depth of Nesting

<p>Group 3 – Maximum Depth of Nesting Ramakrishna Tammineedi Sudarshan Kodwani Chairoj Mekprasertvit Chris Orosco</p><p>Maximum depth of nesting is a measure of length.</p><p>Definitions:</p><p>Nested Chain-Is a singleton collection of nodes, connected by edges but does not contain any cycles. Node-An entity that is singleton or has a parent and a child Edge-Is a parent relationship to its child. Entity- Method</p><p>E-Maximum nested Chain R-Iterating up a singleton chain of nodes and counting the number of parents m-class</p><p>Unit of measurement = depth Value = maximum depth level Measurement instrument-iterating up a nested chain and counting the number of parents.</p><p>Since the edge between nodes is the unit of depth, then we can say that one node is depth zero and no edge is depth zero. We do not define a nested chain that contains no nodes. </p><p>PL1: Non-negativity</p><p>Length(s) >= 0</p><p>S = (Max nested chain, 0) = = 0 S = (Max nested chain, -1) = = PL2</p><p>If we have a node (a) that is singleton, then there is no recursion and no edges. If we subtract one edge then it becomes not defined and PL2 will hold.</p><p>PL2: Null Value</p><p>E = Phi => Length(s) == 0</p><p>S = (no nested chain, any number of iterations) = = 0 S = (null, any number of iterations) = = 0 Or</p><p>E = Phi => Length(s) == 0</p><p>S=(nested chain, negative number of iterations) == 0</p><p>From our definition that we do not define a nested chain with zero nodes or a negative number of iteration calls, we can say that PL2 Holds because it is null.</p><p>Pl3: Nonincreasing Monotonicity</p><p>If S = <E, R> and Em = {a, b ,c d} and Rm = {ab, bc, cd} and m = <Em, Rm> and m is subset of S We can only add new relationship ac, ad and bd since there is a path from one to the other in the nondirected graph (same connected component) S’ = <E, R’> and R’ = R U {<a, b>, <b, c>, <c, d>} and <a, b>, <b, c>, <c, d> are not member of R and a, b, c, d are member of Em. Adding new relationship will not increase Length of S (Length(S) >= Length(S’) Max Depth of Nesting holds .</p><p>Pl4: Nondecreasing Monotonicity</p><p>Module 1 Module 2</p><p>The length of module1 is 3 and the length of module2 is 2. Adding an edge between the elements of the two modules can only increase the length and cant be decresed. After adding the edge the length is 4. This applies to edges between other elements as well. Hence adding an R between modules does not decrease its length. Hence property 4 is satisfied. Pl5: Disjoint Modules.</p><p>If we are looking for the maximum depth of nesting then if we have two singleton nested chains of different values and only want the maximum depth of either on of them, then we count the lengths of both chains and take the largest value. As shown in example: The length of Module 1 is 3 and the length of module 2 is 2 and when we want to calculate the maximum length by counting Union those models, the maximum length will be the Max{Module 1, Module 2} = 3</p><p>Module 1: Module 2:</p><p>A E</p><p>B F G</p><p>C H</p><p>D</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    3 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us