📄 tradeoffs for packet classification.ps
字号:
/col15 {0.000 0.560 0.560 srgb} bind def/col16 {0.000 0.690 0.690 srgb} bind def/col17 {0.000 0.820 0.820 srgb} bind def/col18 {0.560 0.000 0.000 srgb} bind def/col19 {0.690 0.000 0.000 srgb} bind def/col20 {0.820 0.000 0.000 srgb} bind def/col21 {0.560 0.000 0.560 srgb} bind def/col22 {0.690 0.000 0.690 srgb} bind def/col23 {0.820 0.000 0.820 srgb} bind def/col24 {0.500 0.190 0.000 srgb} bind def/col25 {0.630 0.250 0.000 srgb} bind def/col26 {0.750 0.380 0.000 srgb} bind def/col27 {1.000 0.500 0.500 srgb} bind def/col28 {1.000 0.630 0.630 srgb} bind def/col29 {1.000 0.750 0.750 srgb} bind def/col30 {1.000 0.880 0.880 srgb} bind def/col31 {1.000 0.840 0.000 srgb} bind defendsave-55.0 186.0 translate1 -1 scale/cp {closepath} bind def/ef {eofill} bind def/gr {grestore} bind def/gs {gsave} bind def/sa {save} bind def/rs {restore} bind def/l {lineto} bind def/m {moveto} bind def/rm {rmoveto} bind def/n {newpath} bind def/s {stroke} bind def/sh {show} bind def/slc {setlinecap} bind def/slj {setlinejoin} bind def/slw {setlinewidth} bind def/srgb {setrgbcolor} bind def/rot {rotate} bind def/sc {scale} bind def/sd {setdash} bind def/ff {findfont} bind def/sf {setfont} bind def/scf {scalefont} bind def/sw {stringwidth} bind def/tr {translate} bind def/tnt {dup dup currentrgbcolor 4 -2 roll dup 1 exch sub 3 -1 roll mul add 4 -2 roll dup 1 exch sub 3 -1 roll mul add 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} bind def/shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 4 -2 roll mul srgb} bind def/$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def/$F2psEnd {$F2psEnteredState restore end} def$F2psBegin10 setmiterlimitn -1000 4087 m -1000 -1000 l 7424 -1000 l 7424 4087 l cp clip 0.06000 0.06000 sc% Polyline15.000 slwn 2850 2475 m 3150 2475 l gs col0 s gr % Polylinen 2400 1800 m 3150 1800 l gs col0 s gr % Polylinen 4200 1800 m 4875 1800 l gs col0 s gr % Polylinen 3750 1350 m 4875 1350 l gs col0 s gr % Polyline7.500 slw [60] 0 sdn 990 1185 m 990 2985 l gs col-1 s gr [] 0 sd% Polylinen 990 2910 m 990 3060 l gs col0 s gr % Polylinegs clippath4630 2936 m 4491 2959 l 4598 2868 l 4440 2942 l 4472 3010 l cpclipn 5010 2715 m 4470 2970 l gs col-1 s gr gr% arrowheadn 4630 2936 m 4491 2959 l 4598 2868 l col-1 s% Polylinegs clippath4123 2992 m 3983 2993 l 4103 2920 l 3935 2968 l 3956 3040 l cpclipn 4995 2700 m 3960 3000 l gs col-1 s gr gr% arrowheadn 4123 2992 m 3983 2993 l 4103 2920 l col-1 s% Polyline15.000 slwn 1875 2400 m 3750 2400 l gs col0 s gr /Times-Roman ff 270.00 scf sf3375 900 mgs 1 -1 sc (Intervals) col-1 sh gr/Times-Roman ff 270.00 scf sf5040 2955 mgs 1 -1 sc (Intervals) col-1 sh gr/Times-Roman ff 270.00 scf sf5055 2730 mgs 1 -1 sc (Elementary) col-1 sh gr% Polylinen 1875 900 m 3150 900 l gs col0 s gr % Polylinen 1275 2400 m 1575 2400 l gs col0 s gr % Polylinen 1275 1800 m 1875 1800 l gs col0 s gr % Polyline45.000 slwn 975 3000 m 4875 3000 l gs col0 s gr % Polyline15.000 slwn 975 1200 m 3750 1200 l gs col0 s gr % Polyline7.500 slwn 1590 2925 m 1590 3075 l gs col0 s gr % Polyline [60] 0 sdn 4875 1350 m 4875 3000 l gs col-1 s gr [] 0 sd% Polylinen 1875 2925 m 1875 3075 l gs col0 s gr % Polylinen 2400 2925 m 2400 3075 l gs col0 s gr % Polylinen 2850 2925 m 2850 3075 l gs col0 s gr % Polylinen 4875 2925 m 4875 3075 l gs col0 s gr % Polylinen 4200 2925 m 4200 3075 l gs col0 s gr % Polylinen 3750 2925 m 3750 3075 l gs col0 s gr % Polylinen 3150 2925 m 3150 3075 l gs col0 s gr % Polyline [60] 0 sdn 4200 1800 m 4200 3000 l gs col-1 s gr [] 0 sd% Polyline [60] 0 sdn 1590 2430 m 1590 3015 l gs col-1 s gr [] 0 sd% Polyline [60] 0 sdn 1275 1800 m 1275 2955 l gs col-1 s gr [] 0 sd% Polylinen 1275 2925 m 1275 3075 l gs col0 s gr % Polyline [60] 0 sdn 1875 900 m 1875 3015 l gs col-1 s gr [] 0 sd% Polyline [60] 0 sdn 3750 1200 m 3750 3000 l gs col-1 s gr [] 0 sd% Polyline [60] 0 sdn 3150 900 m 3150 3000 l gs col-1 s gr [] 0 sd% Polyline [60] 0 sdn 2850 2475 m 2850 3000 l gs col-1 s gr [] 0 sd% Polyline [60] 0 sdn 2400 1875 m 2400 3000 l gs col-1 s gr [] 0 sd$F2psEndrs%%EndDocument endTexFig 138 457 a Fv(Fig.)9 b(1.)19 b(Example:)9 b(elementary)e(interv)o(als.)-130 559 y Fo(q)q Fu(.)17 b(The)12 b(worst)f(case)i(number)e(of)g(memory)h(accesses)i(needed)f(to)e(solv)o(e)-130 608y(this)f(problem)f(is)h Fk(RL)171 614 y Fm(t)186 608y Fp(\()p Fo(n;)d(U)e Fp(\))10 b Fu(and)g(the)g(space)i(used)e(for)g(this)g(solution)e(is)-130 658 y Fk(RL)-86 664 y Fm(s)-69658 y Fp(\()p Fo(n;)f(U)e Fp(\))p Fu(.)-88 713 y(F)o(or)13b(us,)i(the)f Fl(RL)f Fu(problem)g(arises)i(because)g(our)e(o)o(v)o(erall)g(approach)-130 762 y(for)d(solving)f(the)i Fl(PC)fFu(problem)g(relies)h(on)f(reducing)g(them)h(to)f(a)i(fe)o(w)e(in-)-130812 y(stances)j(of)f(the)g Fl(RL)g Fu(problem.)19 b(F)o(or)12b(one-dimensions,)g(this)g(reduction)-130 861 y(is)f(immediate.)17b(Gi)o(v)o(en)11 b(a)h(set)g(of)f(interv)o(als)f(for)h(the)gFl(PC)g Fu(problem,)h(con-)-130 911 y(sider)h(the)h(set)f(of)g(all)g(the)h(endpoints)e(of)h(interv)o(als)f(\(and)i Fp(1)fFu(and)g Fo(U)19 b Fu(are)-130 960 y(included)c(by)g(default\).)27b(The)17 b(re)o(gion)e(between)h(an)o(y)g(two)e(such)iFt(con-)-130 1009 y(secutive)d Fu(points)e(in)g(sorted)h(order)g(is)g(called)g(an)g Ft(elementary)h(interval)p Fu(.)-130 1059y(Figure)i(1)g(illustrates)f(an)i(e)o(xample.)30 b(No)15b(two)g(elementary)h(interv)o(als)-130 1108 y(o)o(v)o(erlap.)e(W)m(e)d(can)h(process)f(each)g(rule)g(in)f(the)g Fl(PC)g Fu(problem)g(and)h(retain)-130 1158 y(the)k(smallest)h(cost)f(rule)g(that)f(intersects)h(each)i(elementary)e(interv)o(al.)-130 1207 y(This)10b(reduces)h(the)g Fl(PC)f Fu(problem)g(on)g Fo(n)g Fu(rules)g(to)g(the)g Fl(RL)g Fu(problem)g(with)-130 1256 y Fr(\024)i Fp(2)pFo(n)c Fu(elementary)h(interv)o(als)f([12].)j(The)f(uni)o(v)o(erse)e(size)h(for)f(both)g(prob-)-130 1306 y(lems)k(is)g Fo(U)5b Fu(.)18 b(Therefore)12 b(it)f(is)h(suf)o(\002cient)f(to)h(solv)o(e)g(the)f Fl(RL)h Fu(problem)f(to)-130 1355 y(solv)o(e)f(the)hFl(PC)f Fu(and)g(the)g Fl(IPL)g Fu(problem)g(\(T)m(able)g(I\).)-1301410 y Fs(Solving)16 b Fl(RL)i Fs(pr)o(oblem:)28 b Fu(The)18b(best)g(kno)o(wn)f(theoretical)g(result)g(for)-130 1460y(solving)d(the)i Fl(RL)g Fu(problem)f(takes)h Fo(O)qFp(\(log)7 b(log)f Fo(U)f Fp(\))17 b Fu(memory)f(accesses)-1301509 y(using)9 b(space)i Fo(O)q Fp(\()p Fo(n)p Fp(\))fFu(with)f(a)i(lar)o(ge)f(preprocessing)f(time)h([18];)f(the)h(con-)-1301559 y(stants)e(in)n(v)o(olv)o(ed)f(are)i(of)e(moderate)i(size.)k(A)8b(dif)o(ferent)f(approach)h([12])f(is)-130 1608 y(to)i(do)g(a)h(multiway)e(\()p Fo(k)q Fu(-way\))g(search)j(if)d Fo(k)jFp(log)6 b Fo(U)15 b Fu(bit)8 b(operations)g(can)i(be)-1301657 y(performed)h(with)f(a)i(single)e(memory)i(lookup,)e(in)g(which)h(case)i(at)e(most)-130 1707 y Fp(log)-76 1717 y Fm(k)qFn(+1)-7 1707 y Fo(n)t Fp(+)t(1)f Fu(memory)g(accesses)h(are)f(needed.)j(This)c(is)g(a)h(v)o(ery)f(simple)-130 1756 y(and)j(memory)g(ef)o(\002cient)f(solution)f(if)g Fo(n)i Fu(is)f(not)g(too)g(lar)o(ge.)17b(Y)l(et)11 b(another)-130 1806 y(approach)j(that)g(we)h(e)o(xplore)f(here)g(is)g(to)g(reduce)h(the)f Fl(RL)g Fu(problem)f(to)-1301855 y(the)d Fl(IPL)g Fu(problem.)-88 1910 y Ft(Theor)n(em)h(III.1:)20b(Consider)15 b(any)h(instance)f Fo(I)k Ft(of)c(the)hFl(RL)f Ft(pr)n(oblem)-130 1960 y(with)c Fo(N)18 b Ft(points)11b(in)h(the)h(r)o(ange)f Fp(1)7 b Fr(\001)g(\001)g(\001)eFo(U)g Ft(.)21 b(W)l(e)13 b(can)f(derive)i(an)e(instance)-1302009 y Fo(I)-109 1994 y Fh(0)-83 2009 y Ft(of)g Fl(IPL)hFt(with)f(at)h(most)f Fp(2)p Fo(N)18 b Ft(pr)n(e\002xes,)e(eac)o(h)e(a)f(string)g(of)f(length)g(at)-130 2058 y(most)j Fo(a)20b Fp(=)h Fr(d)p Fp(log)7 b Fo(U)e Fr(e)p Ft(.)28 b(Eac)o(h)16b(query)f Fo(i)h Ft(for)f(the)g Fl(RL)g Ft(pr)n(oblem)f(can)h(be)-1302108 y(tr)o(ansformed)c(into)f(an)h(IP)h(addr)n(ess)g(of)f(length)f(at)h(most)g Fo(a)h Ft(for)f(the)g Fl(IPL)-130 2157 y Ft(pr)n(oblem)f(on)g(set)g Fo(I)146 2142 y Fh(0)158 2157 y Ft(.)-130 2213y Fs(Pr)o(oof:)18 b Fu(The)13 b(reduction)f(goes)g(as)i(follo)o(ws.)k(Say)13 b Fo(S)636 2219 y Fm(j)667 2213 y Fu(is)f(the)h(bit)e(repre-)-130 2262 y(sentation)f(of)g(an)h(inte)o(ger)g Fo(j)iFu(in)d Fo(I)s Fu(.)15 b(Inte)o(ger)c Fo(
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -