-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcattle_tree_visualization.txt
More file actions
71 lines (57 loc) · 2.32 KB
/
Copy pathcattle_tree_visualization.txt
File metadata and controls
71 lines (57 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
CATTLE HERD MANAGEMENT TREE STRUCTURE
=====================================
Root Node: s (All Cattle)
Level 1 - BREED (s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7)
├── s_0: Yacumeño
├── s_1: Chaqueño
├── s_2: Chusco
├── s_3: Saavedreño
├── s_4: Holstein (imported)
├── s_5: Brahman (imported)
├── s_6: Angus (imported)
└── s_7: Hereford (imported)
Level 2 - AGE GROUP (s_X_Y)
├── s_0_0: Calves (0-6 months)
├── s_0_1: Young Stock (6-24 months)
├── s_0_2: Mature Cows (2-8 years)
├── s_0_3: Senior Cows (8+ years)
├── s_0_4: Breeding Bulls (2-6 years)
└── s_0_5: Senior Bulls (6+ years)
Level 3 - HEALTH STATUS (s_X_Y_Z)
├── s_0_0_0: Excellent Health
├── s_0_0_1: Good Health
├── s_0_0_2: Fair Health
├── s_0_0_3: Under Treatment
├── s_0_0_4: Quarantine
└── s_0_0_5: Pregnant
Level 4 - PRODUCTION GROUP (s_X_Y_Z_W)
├── s_0_0_0_0: Breeding Stock
├── s_0_0_0_1: Dairy Production
├── s_0_0_0_2: Meat Production
├── s_0_0_0_3: Replacement Heifers
├── s_0_0_0_4: Cull Animals
└── s_0_0_0_5: Show Animals
EXAMPLE PATHS:
==============
s_0_2_0_0_5 = Yacumeño + Mature Cow + Excellent Health + Breeding Stock + ID #005
s_1_1_1_1_3 = Chaqueño + Young Stock + Good Health + Dairy Production + ID #103
s_2_0_5_0_7 = Chusco + Calf + Pregnant + Breeding Stock + ID #007
COUNTING EXAMPLES:
==================
Query: s_0 (All Yacumeño cattle)
Result: Counts all cattle under the Yacumeño breed
Query: s_0_2 (All mature Yacumeño cows)
Result: Counts all mature Yacumeño cows regardless of health/group
Query: s_0_2_0 (All mature Yacumeño cows in excellent health)
Result: Counts all mature Yacumeño cows with excellent health status
Query: s_0_2_0_0 (All mature Yacumeño cows in excellent health for breeding)
Result: Counts all mature Yacumeño cows in excellent health designated for breeding
Query: s_0_2_0_0_5 (Specific individual cow)
Result: 1 (if exists) or 0 (if doesn't exist)
TREE STRUCTURE BENEFITS:
========================
- Fast lookup of cattle by any combination of attributes
- Easy counting of animals in specific categories
- Hierarchical organization mirrors real farm management
- Efficient memory usage with dynamic allocation
- Quick identification of breeding stock, health issues, etc.