ã¨ãªãã¾ãã ãã® $C_i$ ãã$0\leq i\leq 2N$ ãæºãããã¹ã¦ã® $i$ ã«ã¤ãã¦æ±ããã®ãä»åã®ç®æ¨ã§ãã ããããæç´ã«æ±ããã¨ã$f,g$ ã®å ¨é ãçµã¿åããã¦åç §ãããã¨ã«ãªãã®ã§ã $O(N^2)$ ã§ãããããã©ãã«ããã¦é«éåãã¾ãã å¤é å¼è£é æç´ãªä¹ç®ã¯é£ããããªã®ã§ã$C_i$ ã®å¤ããå¤é å¼è£éãç¨ãã¦ç®åºãããã¨ãèãã¾ãã å¤é å¼è£éã¨ã¯ãå¤é å¼ã®å¤æ°ã«å®éã«ããã¤ãã®å¤ãä»£å ¥ããå¤é å¼ãè¨ç®ããå¤ãããå¤é å¼ã®ä¿æ°ã決å®ããææ³ã§ãã ãã¨ãã°ã$f(x)=ax+b$ ã¨ãã $1$ 次é¢æ°ãããã¨ãã¾ãã $a$ 㨠$b$ ã®å¤ã¯åããã¾ãããã$f(3)=5,f(7)=-3$ ãããã£ã¦ãããã®ã¨ãã¾ãã å®éã« $3,7$ ãä»£å ¥ãã¦ã¿ãã¨ã $3a+b=5$ $7a+b=-3$ ã¨ãé£ç«æ¹ç¨å¼ãç«ã¡ã$a,b$ ã®å¤ãæ±ãããã¾