Class NodeUtil


  • public final class NodeUtil
    extends Object
    This NodeUtil class
    Version:
    Summer 2022
    Author:
    carl.lajeunesse
    • Constructor Detail

      • NodeUtil

        private NodeUtil()
        basic/ useless constructor
    • Method Detail

      • getSmallestNode

        public static AbstractNode getSmallestNode​(AbstractNode root)
        Return the small child (in size) that are still expendable
        Parameters:
        root - Parent node
        Returns:
        the smallest child.
      • getBestNode

        public static AbstractNode getBestNode​(AbstractNode node)
        Get the best child
        Parameters:
        node - Parent node
        Returns:
        the best child