锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久91亚洲精品中文字幕,久久精品国产亚洲麻豆,亚洲日韩一中文字暮http://www.tkk7.com/lzj520/zh-cnSat, 10 May 2025 12:15:40 GMTSat, 10 May 2025 12:15:40 GMT60091118姹傛潹杈変笁瑙掍腑鐨勯」http://www.tkk7.com/lzj520/archive/2009/11/18/302812.htmllzj520lzj520Wed, 18 Nov 2009 08:11:00 GMThttp://www.tkk7.com/lzj520/archive/2009/11/18/302812.html   int r=0;
  if(l==1|n==1|l==n){
   return 1;
  }else{
  return recursion(l-1,n-1)+recursion(l-1,n);
  }
 }

public static void main(String[] args){
System.out.println(recursion(7,4));
}

lzj520 2009-11-18 16:11 鍙戣〃璇勮
]]>
090505 james閭歡鑷姩璺戝幓spam box涓嬮潰鐨勯棶棰?/title><link>http://www.tkk7.com/lzj520/archive/2009/05/05/269027.html</link><dc:creator>lzj520</dc:creator><author>lzj520</author><pubDate>Tue, 05 May 2009 09:18:00 GMT</pubDate><guid>http://www.tkk7.com/lzj520/archive/2009/05/05/269027.html</guid><wfw:comment>http://www.tkk7.com/lzj520/comments/269027.html</wfw:comment><comments>http://www.tkk7.com/lzj520/archive/2009/05/05/269027.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/lzj520/comments/commentRss/269027.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/lzj520/services/trackbacks/269027.html</trackback:ping><description><![CDATA[<p>瑙e喅鐢╦ames鏀墮偖浠舵椂閭歡鑷繁璺戝幓浜唖pam box涓嬮潰鐨勯棶棰橈紝鎶婁笅闈㈣繖孌墊敞閲婃帀灝卞彲浠ヤ簡銆?/p> <p><mailet match="InSpammerBlacklist=dnsbl.njabl.org."<br />                  class="ToProcessor"><br />            <processor> spam </processor><br />            <notice>550 Requested action not taken: rejected - see http://njabl.org/ </notice><br /> </mailet><br /> </p> <img src ="http://www.tkk7.com/lzj520/aggbug/269027.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/lzj520/" target="_blank">lzj520</a> 2009-05-05 17:18 <a href="http://www.tkk7.com/lzj520/archive/2009/05/05/269027.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>090310 Exercise 1.12 Pascal's trianglehttp://www.tkk7.com/lzj520/archive/2009/03/10/258890.htmllzj520lzj520Tue, 10 Mar 2009 11:21:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/10/258890.htmlhttp://www.tkk7.com/lzj520/comments/258890.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/10/258890.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258890.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258890.html   (cond ((> y x) (display "error input"))
        ((= x 1) 1)
        ((= x 2) 1)
        ((= y 1) 1)
        ((= x y) 1)
        (else
         (+ (Pascal(- x 1) y) (Pascal (- x 1) (- y 1))
         ))))

lzj520 2009-03-10 19:21 鍙戣〃璇勮
]]>
090310 RHEL 涓嬪畨瑁呭甫mod_prox妯″潡鐨刟pachehttp://www.tkk7.com/lzj520/archive/2009/03/10/258885.htmllzj520lzj520Tue, 10 Mar 2009 11:06:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/10/258885.htmlhttp://www.tkk7.com/lzj520/comments/258885.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/10/258885.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258885.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258885.html make
make install

鎴栨槸涓嶉噸鏂板畨瑁呯殑鎯呭喌涓嬶細
make WITH_PROXY_MODULE=yes

lzj520 2009-03-10 19:06 鍙戣〃璇勮
]]>
090310 RHEL 涓嬫寕杞絯indows鏂囦歡鐩綍http://www.tkk7.com/lzj520/archive/2009/03/10/258883.htmllzj520lzj520Tue, 10 Mar 2009 11:04:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/10/258883.htmlhttp://www.tkk7.com/lzj520/comments/258883.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/10/258883.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258883.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258883.html smbclient -L 192.168.0.11 -U administrator
鎸傝澆錛?br /> mount -t smbfs -o username=administrator,password=pwdabc,iocharset=cpq36 //192.168.0.11/share /mnt/11share

lzj520 2009-03-10 19:04 鍙戣〃璇勮
]]>
090310 Exercise 1.11. recursive process and iterativehttp://www.tkk7.com/lzj520/archive/2009/03/10/258516.htmllzj520lzj520Tue, 10 Mar 2009 00:51:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/10/258516.htmlhttp://www.tkk7.com/lzj520/comments/258516.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/10/258516.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258516.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258516.htmlExercise 1.11.  A function f is defined by the rule that f(n) = n if n<3 and f(n) = f(n - 1) + 2f(n - 2) + 3f(n - 3) if n> 3. Write a procedure that computes f by means of a recursive process. Write a procedure that computes f by means of an iterative process.

recursive:

(define (fn n)
  (cond ((>= n 3) (+ (+ (fn (- n 1)) (* 2 (fn (- n 2)))) (* 3 (fn (- n 3)))))
        ((< n 3) n)
   ))


 iterative:

(define (re n)
  (if (< n 3)
      n
      (iter 2 1 0 n)
      ))
(define (iter a b c n)
(if(= n 3)
   (ca a b c)
   (iter (ca a b c) a b (- n 1))
   )
)
(define (ca a b c)
  (+ a (* 2 b) (* 3 c) )
)



lzj520 2009-03-10 08:51 鍙戣〃璇勮
]]>
090306 Exercise 1.8 cube-root procedureshttp://www.tkk7.com/lzj520/archive/2009/03/06/258241.htmllzj520lzj520Fri, 06 Mar 2009 08:22:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/06/258241.htmlhttp://www.tkk7.com/lzj520/comments/258241.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/06/258241.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258241.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258241.html the cube root of x, then a better approximation is given by the value
(x/y2+2y)/3
Use this formula to implement a cube-root procedure analogous to the square-root procedure. (In
section 1.3.4 we will see how to implement Newton's method in general as an abstraction of these
square-root and cube-root procedures.)

(define (cube x)
  (* x x x))
(define (square x)
  (* x x ))
(define (result x y)
 (/ (+ (/ x (square y)) (* 2 y)) 3))
(define (improve  x guess)
  (result   x guess))
(define (good-enough?  x guess)
  (< (abs (- (* guess guess guess ) x))0.001))
(define (sqrt-iter x  guess)
  (if (good-enough?  x guess)
      guess
      (sqrt-iter x (improve  x guess)
                 )))

lzj520 2009-03-06 16:22 鍙戣〃璇勮
]]>
090306 Exercise 1.6 Square Roots by Newton's Methodhttp://www.tkk7.com/lzj520/archive/2009/03/06/258214.htmllzj520lzj520Fri, 06 Mar 2009 07:19:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/06/258214.htmlhttp://www.tkk7.com/lzj520/comments/258214.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/06/258214.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258214.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258214.html can't I just define it as an ordinary procedure in terms of cond?'' she asks. Alyssa's friend Eva Lu
Ator claims this can indeed be done, and she defines a new version of if:
(define (new-if predicate then-clause else-clause)
  (cond (predicate then-clause)
        (else else-clause)))
Eva demonstrates the program for Alyssa:
(new-if (= 2 3) 0 5)
5
(new-if (= 1 1) 0 5)
0
Delighted, Alyssa uses new-if to rewrite the square-root program:
32(define (sqrt-iter guess x)
  (new-if (good-enough? guess x)
          guess
          (sqrt-iter (improve guess x)
                     x)))
What happens when Alyssa attempts to use this to compute square roots? Explain.


(define (new-if predicate then-clause else-clause)
(cond (predicate then-clause)
      (else-clause)))
(define (average x y)
  (/ (+ x y) 2))
(define (improve guess x)
  (average guess (/ x guess)))
(define (good-enough? guess x)
  (< (abs (- (square guess) x))0.001))
(define (square x)
  (* x x))
(define (sqrt-iter guess x)
  (new-if (good-enough? guess x)
          guess
          (sqrt-iter (improve guess x)
                     x)))

sqrt-iter (improve guess x)浣滀負鍙傛暟鏉ヤ紶閫掔粰new-if錛屽湪鎵цnew-if鐨勬椂鍊欙紝灝辨繪槸浼氭墽琛宻qrt-iter (improve guess x)錛岄犳垚浜嗘寰幆銆?br />



lzj520 2009-03-06 15:19 鍙戣〃璇勮
]]>
090305 Exercise 1.3 returns the sum of the squares of the two larger numbershttp://www.tkk7.com/lzj520/archive/2009/03/05/258058.htmllzj520lzj520Thu, 05 Mar 2009 11:56:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/05/258058.htmlhttp://www.tkk7.com/lzj520/comments/258058.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/05/258058.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258058.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258058.html
(define (compare x y) (- x y))
(define (sumsquares x y)(+(* x x)(* y y)))
(define (returnlarge a b c)
  (cond ((and (>= (compare a b) 0) (>= (compare c b) 0)) (sumsquares a c))
        ((and (>= (compare a c) 0) (>= (compare b c) 0)) (sumsquares a b))
        ((and (>= (compare c a) 0) (>= (compare b a) 0)) (sumsquares b c))
         )
  )
(returnlarge 3 3 2)

>18

lzj520 2009-03-05 19:56 鍙戣〃璇勮
]]>
090213 闆嗙兢鍐呯敤jsessionid鍏變韓sessionhttp://www.tkk7.com/lzj520/archive/2009/02/13/254575.htmllzj520lzj520Fri, 13 Feb 2009 08:46:00 GMThttp://www.tkk7.com/lzj520/archive/2009/02/13/254575.htmlhttp://www.tkk7.com/lzj520/comments/254575.htmlhttp://www.tkk7.com/lzj520/archive/2009/02/13/254575.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/254575.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/254575.html 浣跨敤HttpSessionListener鏉ョ洃鍚瑂ession鐨勫垱寤哄拰閿姣侊紝闆嗙兢鍐呴儴鐨則omcat寮鍚痵ession澶嶅埗銆?涓簲鐢ㄩ兘璇曠敤HttpSessionListener鏉ョ洃鍚?br />
web.xml錛?br />
  <listener>
  <listener-class>com.com.ActiveUserListener2</listener-class>
 </listener>

<distributable/>

ActiveUserListener2.java

package com.com;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class ActiveUserListener2 implements HttpSessionListener {
    private static int sessionCount2 = 0;
    private static Map sessionMaps2 = new HashMap(); //瀛樻斁session鐨勯泦鍚堢被

  public void sessionCreated(HttpSessionEvent arg0) {
        HttpSession session = arg0.getSession();
        String sessionId = session.getId();
        System.out.println("Create a session:" + sessionId);
        sessionMaps2.put(sessionId, session);
        sessionCount2++;
 }

  public void sessionDestroyed(HttpSessionEvent arg0) {
        sessionCount2--;
        String sessionId = arg0.getSession().getId();
        sessionMaps2.remove(sessionId);//鍒╃敤浼氳瘽ID鏍囩ず鐗瑰畾浼氳瘽
        System.out.println("Destroy a session:" + sessionId);
 }
 public static int getSessionCount() {
  return sessionCount2;
    }
    public static Map getSessionMaps() {
     return sessionMaps2;
    }
}

浼犻抯essionid錛?jsessionid=<%=session.getId()%>

嫻嬭瘯鏁堟灉錛?br /> <%
Map activeSessions = ActiveUserListener2.getSessionMaps();
             out.println(activeSessions.get("CB55ABC39DD5B917D65F456C28FC25E6.tomcat1"));
             out.println(activeSessions);
            }
      }
%>



lzj520 2009-02-13 16:46 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 午夜dj免费在线观看| 222www免费视频| 国产免费拔擦拔擦8x| 亚洲欧美日韩中文无线码| 国产在线观看麻豆91精品免费| 亚洲av无码国产精品夜色午夜| 久久久精品午夜免费不卡| 久久亚洲国产中v天仙www| 一个人免费视频在线观看www| 亚洲国产精品无码久久久不卡 | 四虎影视永久免费观看| 亚洲AV女人18毛片水真多| 国产嫩草影院精品免费网址| 美女露隐私全部免费直播| 亚洲一区精品伊人久久伊人| 成av免费大片黄在线观看| 亚洲激情中文字幕| 免费在线看v网址| 亚洲日本一线产区和二线产区对比| 免费高清av一区二区三区| 美女被免费视频网站a| 激情97综合亚洲色婷婷五| 国产日韩AV免费无码一区二区| 亚洲成人午夜在线| 久久久久国产精品免费免费搜索| 国产成人亚洲午夜电影| 亚洲中文字幕无码久久精品1| 57pao国产成永久免费视频| 亚洲熟妇AV日韩熟妇在线| 亚洲人AV永久一区二区三区久久| 美女视频黄的免费视频网页| 亚洲一卡二卡三卡| 四虎影视永久免费观看地址| 久久大香香蕉国产免费网站| 美女视频黄免费亚洲| 亚洲日韩精品一区二区三区无码 | 一二三四免费观看在线电影| 黄色一级视频免费| 亚洲国产成人精品不卡青青草原| 无码一区二区三区免费视频 | 亚洲精品色午夜无码专区日韩|