כיתה יא - מבנה נתונים - קבוצת יבנה סריקה לרוחב של עץ 8 פבר 20268 פבר 2026 public static void HorizentalScan(BinNode<Integer> t) { Queue<BinNode<Integer>> q = new Queue<BinNode<Integer>>(); BinNode<Integer> tmp; q.insert(t); while (!q.isEmpty()) { tmp = q.remove(); System.out.print(tmp.getValue()+","); if (tmp.hasLeft()) { q.insert(tmp.getLeft()); } if (tmp.hasRight())…
כיתה יא - מבנה נתונים - קבוצת יבנה סריקה לרוחב עם רמה 8 פבר 20268 פבר 2026 public static void HorizentalScanWithLevel(BinNode<Integer> t) { Queue<BinNode<Integer>> q = new Queue<BinNode<Integer>>(); BinNode<Integer> tmp; q.insert(t); int level = 0; while (!q.isEmpty()) { int numOfNodesInLevel =…