Loading...

2013年12月2日 星期一

LAB 27

有A, B, C 三個網頁,A引用了B, C,B引用了C,C也引用了 A 計算A,B,C 三個網頁的PageRank,三者PageRank排序為何? PR(A) = (1-d) + d(PR(t1)/C(t1) + ... + PR(tn)/C(tn)) d是一常數,通常訂為0.85 PR(t1)為外部連結網站本PR分值 C(t1)外部連結網站所擁有的連結數量 Ans: A = (C/2)*0.85+0.15 = 0.425C+0.15---(1) B = (A/1)*0.85+0.15 = 0.85A++0.15---(2) C = (A/1+B/1)*0.85+0.15 = 0.85A+0.85B+0.15---(3) (1).(2).(3) 聯立解

因此三者PageRank順序為: C > B > A


2013年11月11日 星期一

LAB 26

<html>
<body>

<div style="background-color: black; height: 600px; left: 800px; opacity: 0.5; position: absolute; width: 100px;">
</div>
<div style="border-radius: 50px; border: 50px solid #EE872A; font-family: verdana; padding: 10px;">

<div style="background-color: #8ac007; height: 60px; left: 60px; opacity: 0.3; position: absolute; width: 500px;">
</div>
<h3>
BOR-JIUN,HUANG</h3>
<div style="letter-spacing: 5px;">
Chung Yuan Christian University</div>
<div style="color: #40b3ASD;">
Electronic Engineering
<span style="background-color: #bbbbbe; color: BLUE
;">CYCU<span>
</span></span></div>
<div style="color: RED;">
10026246</div>
</div>
</body>
</html>

LAB 25





LAB 24






LAB 23









Homework 11-5-2013

<!DOCTYPE html>
<html> 
  <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 
    <meta http-equiv="Content-Script-Type" content="text/javascript"> 
    <script type="text/javascript"> 
      var re = /\(?\d{3}\)?([-\/\.])\d{3}\1\d{4}/; 
      function check(){ 
    var OK = re.exec(f.q.value);
        if (!OK) 
          {window.alert(RegExp.input + " isn't a phone number with area code!");
         f.q.value="";
        document.f.q.focus();
        return false; }    
         else
       window.alert("Thanks, your phone number is " + OK[0]); 
       
 }
    </script> 
  </head> 
  <body> 
    <p>Enter your phone number (with area code) and then click "Check".
        <br>The expected format is like ###-###-####.</p>
    <form name="f" action="#" onsubmit="return check()" method="get"> 
       check:<input type="text" name="q">     
     <input id="phone" type="submit" value="check">
    </form> 
  </body> 
</html>