# Animal protocol 1 2 object 1 Text at (10,155) color (0,0,0) font Monospaced style 0 size 16 text: "public int binSearch(int l, int r, int x, int[] a)" depth 2147483647 2 object 2 Text at (10,170) color (0,0,0) font Monospaced style 0 size 16 text: "{" depth 2147483647 2 object 3 Text at (25,185) color (0,0,0) font Monospaced style 0 size 16 text: "int midElem = (l+r)/2;" depth 2147483647 2 object 4 Text at (25,200) color (0,0,0) font Monospaced style 0 size 16 text: "if (a == null || a.length == 0 || r < l)" depth 2147483647 2 object 5 Text at (40,215) color (0,0,0) font Monospaced style 0 size 16 text: "return -1;" depth 2147483647 2 object 6 Text at (25,230) color (0,0,0) font Monospaced style 0 size 16 text: "if (a[midElem] == x)" depth 2147483647 2 object 7 Text at (40,245) color (0,0,0) font Monospaced style 0 size 16 text: "return midElem;" depth 2147483647 2 object 8 Text at (25,260) color (0,0,0) font Monospaced style 0 size 16 text: "else" depth 2147483647 2 object 9 Text at (40,275) color (0,0,0) font Monospaced style 0 size 16 text: "if (x < a[midElem])" depth 2147483647 2 object 10 Text at (15,335) color (0,0,0) font Monospaced style 0 size 16 text: "}" depth 2147483647 2 object 11 Text at (110,30) color (0,0,0) font SansSerif style 1 size 24 text: "Binary Search" depth 2147483647 4 object 12 Polyline color (0,0,0) closed filled nodes: { (75,75) (100,75) (100,100) (75,100) (75,75)} fillColor (0,255,0) depth 2147483647 4 object 13 Polyline color (0,0,0) closed filled nodes: { (100,75) (125,75) (125,100) (100,100) (100,75)} fillColor (255,255,255) depth 2147483647 4 object 14 Polyline color (0,0,0) closed filled nodes: { (125,75) (150,75) (150,100) (125,100) (125,75)} fillColor (255,255,255) depth 2147483647 4 object 15 Polyline color (0,0,0) closed filled nodes: { (150,75) (175,75) (175,100) (150,100) (150,75)} fillColor (255,255,255) depth 2147483647 4 object 16 Polyline color (0,0,0) closed filled nodes: { (175,75) (200,75) (200,100) (175,100) (175,75)} fillColor (255,255,255) depth 2147483647 4 object 17 Polyline color (0,0,0) closed filled nodes: { (200,75) (225,75) (225,100) (200,100) (200,75)} fillColor (255,255,255) depth 2147483647 4 object 18 Polyline color (0,0,0) closed filled nodes: { (225,75) (250,75) (250,100) (225,100) (225,75)} fillColor (255,255,255) depth 2147483647 4 object 19 Polyline color (0,0,0) closed filled nodes: { (250,75) (275,75) (275,100) (250,100) (250,75)} fillColor (255,255,255) depth 2147483647 4 object 20 Polyline color (0,0,0) closed filled nodes: { (275,75) (300,75) (300,100) (275,100) (275,75)} fillColor (255,0,0) depth 2147483647 4 object 21 Polyline color (0,0,0) closed filled nodes: { (525,50) (555,50) (555,80) (525,80) (525,50)} fillColor (255,255,255) depth 2147483647 4 object 22 Polyline color (0,0,0) closed filled nodes: { (525,110) (555,110) (555,140) (525,140) (525,110)} fillColor (255,255,255) depth 2147483647 4 object 23 Polyline color (0,0,0) closed filled nodes: { (525,170) (555,170) (555,200) (525,200) (525,170)} fillColor (255,255,255) depth 2147483647 2 object 24 Text at (85,95) color (0,0,0) font SansSerif style 1 size 16 text: "1" depth 2147483647 2 object 25 Text at (110,95) color (0,0,0) font SansSerif style 1 size 16 text: "3" depth 2147483647 2 object 26 Text at (135,95) color (0,0,0) font SansSerif style 1 size 16 text: "4" depth 2147483647 2 object 27 Text at (160,95) color (0,0,0) font SansSerif style 1 size 16 text: "5" depth 2147483647 2 object 28 Text at (185,95) color (0,0,0) font SansSerif style 1 size 16 text: "6" depth 2147483647 2 object 29 Text at (210,95) color (0,0,0) font SansSerif style 1 size 16 text: "8" depth 2147483647 2 object 30 Text at (235,95) color (0,0,0) font SansSerif style 1 size 16 text: "9" depth 2147483647 2 object 31 Text at (255,95) color (0,0,0) font SansSerif style 1 size 16 text: "11" depth 2147483647 2 object 32 Text at (280,95) color (0,0,0) font SansSerif style 1 size 16 text: "12" depth 2147483647 2 object 33 Text at (85,115) color (0,0,0) font SansSerif style 0 size 16 text: "0" depth 2147483647 2 object 34 Text at (110,115) color (0,0,0) font SansSerif style 0 size 16 text: "1" depth 2147483647 2 object 35 Text at (135,115) color (0,0,0) font SansSerif style 0 size 16 text: "2" depth 2147483647 2 object 36 Text at (160,115) color (0,0,0) font SansSerif style 0 size 16 text: "3" depth 2147483647 2 object 37 Text at (185,115) color (0,0,0) font SansSerif style 0 size 16 text: "4" depth 2147483647 2 object 38 Text at (210,115) color (0,0,0) font SansSerif style 0 size 16 text: "5" depth 2147483647 2 object 39 Text at (235,115) color (0,0,0) font SansSerif style 0 size 16 text: "6" depth 2147483647 2 object 40 Text at (260,115) color (0,0,0) font SansSerif style 0 size 16 text: "7" depth 2147483647 2 object 41 Text at (285,115) color (0,0,0) font SansSerif style 0 size 16 text: "8" depth 2147483647 2 object 42 Text at (425,70) color (0,0,0) font SansSerif style 1 size 16 text: "search for : " depth 2147483647 2 object 43 Text at (435,130) color (0,0,0) font SansSerif style 1 size 16 text: "Position : " depth 2147483647 2 object 44 Text at (560,70) color (0,0,0) font SansSerif style 1 size 16 text: "x " depth 2147483647 2 object 45 Text at (565,130) color (0,0,0) font SansSerif style 1 size 16 text: "midElem" depth 2147483647 2 object 46 Text at (565,190) color (0,0,0) font SansSerif style 1 size 16 text: "a.length" depth 2147483647 2 object 47 Text at (55,95) color (0,0,0) font SansSerif style 1 size 16 text: "a" depth 2147483647 2 object 48 Text at (535,195) color (0,0,0) font SansSerif style 1 size 24 text: "9" depth 2147483647 2 object 49 Text at (535,75) color (0,0,0) font SansSerif style 1 size 24 text: "2" depth 2147483647 2 object 50 Text at (50,155) color (0,0,255) font Helvetica style 1 size 12 text: "public int bruteForceSearch(int[] a, int x)" depth 2147483647 2 object 51 Text at (50,155) color (0,0,0) font Helvetica style 1 size 12 text: "public int bruteForceSearch(int[] a, int x)" depth 2147483647 2 object 52 Text at (65,185) color (0,0,255) font Helvetica style 1 size 12 text: "int i;" depth 2147483647 2 object 53 Text at (460,135) color (0,0,255) font Helvetica style 1 size 24 text: "0" depth 2147483647 2 object 54 Text at (65,185) color (0,0,0) font Helvetica style 1 size 12 text: "int i;" depth 2147483647 2 object 55 Text at (65,200) color (0,0,255) font Helvetica style 1 size 12 text: "if (a == null || a.length==0) return -1;" depth 2147483647 2 object 56 Text at (460,195) color (0,0,255) font Helvetica style 1 size 24 text: "9" depth 2147483647 2 object 57 Text at (65,200) color (0,0,0) font Helvetica style 1 size 12 text: "if (a == null || a.length==0) return -1;" depth 2147483647 2 object 58 Text at (460,195) color (0,0,0) font Helvetica style 1 size 24 text: "9" depth 2147483647 4 object 59 Polyline color (0,0,0) bwArrow nodes: { (85,75) (85,45)} fillColor (255,255,255) depth 2147483647 2 object 60 Text at (80,215) color (0,0,255) font Helvetica style 1 size 12 text: "for (i=0;" depth 2147483647 2 object 61 Text at (115,215) color (0,0,255) font Helvetica style 1 size 12 text: "i