יב - פרויקטים שמירת ג’יסון בקובץ 23 פבר 2026 private void btnSave_Click(object sender, EventArgs e) { Player player= population.players.OrderByDescending(p => p.score).FirstOrDefault(); string folder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); string fileName = "\\"+DateTime.Now.ToString("dd.MM.yyyy.HH.mm")+ "_player.json"; folder += fileName; TextWriter…
כיתה יא - מבנה נתונים - קבוצת יבנה סריקה לרוחב עם רמה 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 =…
כיתה יא - מבנה נתונים - קבוצת יבנה סריקה לרוחב של עץ 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())…
כיתה יא - מבנה נתונים - קבוצת יבנה הדפסת עץ מעוצבת 9 פבר 2026 public static <T> void printTreeLevelOrder(BinNode<T> t) { if (t == null) return; BinNode<T> tmp; int height = getHeight(t); Queue<BinNode<T>> q = new Queue<BinNode<T>>(); q.insert(t); …