728x90
이녀석 상당히 거슬린다. 말도 없이 감염되고 USB를 꽂으면 전염된다.
autorun.ini파일을 숨김파일로 만드는게 고작인데 걸리면 더블클릭으로 드라이브를 열면 실행이 된다.

웬만한 백신으로 자세히 검사를 선택하면 다 잡힌다. 하지만 뒷처리가 남아있다. 이녀석에게 걸렸다 지워진 후에는 숨김파일을 보지 못한다. 설정이 막혀버린다. 이런저런 치료법이 많이 있지만 가장 무식하고 확실한 방법은 역시 레지스트리를 고쳐주는 것인듯 하다.

- 윈도우 시작-실행 선택후 나온 창에 regedit를 입력하고 확인을 클릭
- 레지스트리 편집기가 실행되면 다음 레지스트리를 찾아서 이동
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer

\Advanced\Folder\Hidden\SHOWALL

 

CheckedValue REG_DWORD 더블 클릭후 값 데이터 1로 바꿈

728x90
728x90
Finding primes & proving primality
As we mentioned before, many of the primality proving methods are conjectured to be polynomial-time.  For example, Miller's test is polynomial if ERH is true (and Rabin gave a version of this test that was unconditionally randomized polynomial-time [Rabin80]).  Adleman and Hang [AH1992] modified the Goldwasser-Killian algorithm [GK86] to produce a randomized polynomial time algorithm that always produced a certificate of primality...  So it is not surprising that there exists a polynomial-time algorithm for proving primality.  But what is surprising is that in 2002 Agrawal, Kayal and Saxena [AKS2002] found a relatively simple deterministic algorithm which relies on no unproved assumptions.  We present this algorithm below then briefly refer to a related algorithm of Bernstein.

The key to AKS' result is another simple version of Fermat's Little Theorem:

Theorem:  Suppose that a and p are relatively prime integers with p > 1.  p is prime if and only if

(x-a)p = (xp-a)   (mod p)
Proof.  If p is prime, then p divides the binomial coefficients pCr for r = 1, 2, ... p-1.  This shows that (x-a)p = (xp-ap) (mod p), and the equation above follows via Fermat's Little Theorem.  On the other hand, if p > 1 is composite, then it has a prime divisor q.  Let qk be the greatest power of q that divides p. Then qk does not divide pCq and is relatively prime to ap-q, so the coefficient of the term xq on the left of the equation in the theorem is not zero, but it is on the right.

(This result was used to create a randomized polynomial-time algorithm by Agrawal and Biswas [AB1999].)

Of course in this form it is too difficult to use because there are just far too many coefficients to check.  Their idea was to look at the simpler condition:

(x-a)p = (xp-a)   (mod xr-1,p)

This must hold if p is prime and it is conjectured (see [BP2001, KS2002]) that if r >1 does not divide p and the above congruence holds, then either p is prime or p2 is 1 modulo r.

Agrawal, Kayal and Saxena managed to reformulate this into the following algorithm which they proved would run in at most O((log n)12f(log log n)) time where f is a polynomial. (This means the time it takes to run the algorithm is at most a constant times the number of digits to the twelfth power times a polynomial evaluated at the log of the number of digits.)

Input: Integer n > 1

if (n is has the form ab with b > 1) then output COMPOSITE

r := 2
while (r < n) {
    if (gcd(n,r) is not 1) then output COMPOSITE
    if (r is prime greater than 2) then {
        let q be the largest factor of r-1
        if (q > 4sqrt(r)log n) and (n(r-1)/q is not 1 (mod r)) then break
    }
    r
:= r+1
}

for a = 1 to 2sqrt(r)log n {
    if ( (x-a)n is not (xn-a) (mod xr-1,n) ) then output COMPOSITE
}

output PRIME;
The proof [AKS2002] is relatively straightforward, and perhaps the most advanced result necessary is a sieve result required to show the necessary q exists for each composite ([F1985], [BH1996]).  (Note that the first step, determining if the number is a perfect power, can be done in essentially linear time [Bernstein1998b].)

AKS also showed that if Sophie Germain primes have the expected distribution [HL23] (and they certainly should!), then the exponent 12 in the time estimate can be reduced to 6, bringing it much closer to the the (probabilistic) ECPP method.  But of course when actually finding primes it is the unlisted constants1 that make all of the difference!  We will have to wait for efficient implementations of this algorithm (and hopefully clever restatements of the painful for loop) to see how it compares to the others for integers of a few thousand digits.  Until then, at least we have learned that there is a polynomial-time algorithm for all integers that both is deterministic and relies on no unproved conjectures!

Note: D. J. Bernstein's exposition of the Agrawal-Kayal-Saxena theorem (mentioned above) contains improvements by many diferent researchers which reduce the constants involved in the time analysis by at least a factor of 2,000,000.  This is perhaps the best source for the present state of the algorithm.

Related Approaches and Recent News!

Berrizbeitia [Berrizbeitia2003] found a way to save time in AKS-type primality proofs for some primes n, reducing the exponent from 6+o(1) to 4+o(1).  Cheng [Cheng2003] extended Berrizbeitia's idea to more primes n, and Bernstein [Bernstein2003] extended it to all primes n.  The algorithm for finding these proofs relies on some randomness, unlike the original AKS algorithm.

It seems plausible that a variant of AKS may soon compete in practice with ECPP for 'general' primality proofs.  This field is in great deal of flux at this time!

Other useful links:

원문 링크 : http://primes.utm.edu/prove/prove4_3.html

===============================================================================
대단하다. 수학적으로 증명 된 알고리즘이라는데 시간 복잡도가 O((log n)12f(log log n))
2학년 초반에 소수판별이 들어가는 프로그램을 숙제로 한 적이 있었는데 조금이라도 시간 복잡도를 줄여보겠다고 기하평균을 쓴 적이 있었다. 그때의 알고리즘을 생각해보면 대략 O(log2 n)정도 되었다. 소수를 판별하는데 GCD를 사용하는 생각은 어떻게 한걸까?
GCD는 최대공약수를 구하는 함수로 대략 세줄 정도의 재귀호출로 끝낼 수 있다.

a가 b보다 큰 값으로 시작한다는 가정하의 GCD함수 예
  1. int GCD(int a, int b)   
  2. {  
  3.     if ( a%b == 0 ) return b;   
  4.     return GCD(b, a%b);   
  5. }   
728x90
728x90



이것도 증강현실의 일종인듯 보인다. 일반적으로 증강현실이라면 마크를 알아볼 수 있는 종이 표로 구분하는 것이 보통인데 이건 뭐......
자동차 그려놓고 그게 3D로 변하고 굴러가는 모습 보고는 좌절했다.
그리고 마지막에 화면 줄어들면서 pet을 간지럽히는 모션에선...
KO당한 상태에서 필살기를 맞는 느낌이었달까...

이번에 영상 처리하면서 참 어렵다고 생각했는데 우리가 하는 건 장난 질이었구나! 하는 생각이 들었다. 암튼 대단하다. 개발하는데 얼마나 많은 brain이 들었을까?
728x90
728x90
내용은 아래의 링크에서 퍼왔습니다.
http://hddguru.co.kr/





삼성이 어떻게 하면 SSD를 두드러지게 보여줄수 있냐는 물음의 Viral Marketing Movie 입니다.
우선 SSD 하드를 잘 모르시는 분들도 계시니 예전 포스팅한 내용중 차세대 저장장치 SSD 를 클릭해서 알아보시길 바랍니다.

동영상의 내용은 SSD 하드를 8명이 어떻게 보여줄지를 고민하며 브래인스토밍을 하게됩니다.
그때 PAUL 이란 천재소년의 등장으로 기가막힌 아이디어를 냅니다.
256Gb SSD 하드 24개를 SAS로 RAID 구성을 기획하며 AWESOMENESS!!(굉장한) 라고 적습니다.
무려 6TB 나 되는군요.

그리곤 조립에 착수하죠
조립에 필요한 재료를 소개하자면
1. 2개의 거대한 팬이 달린 코어2익스트림 QX9775 쿼드코어 CPU 2개
2. 듀얼 라데온 HD 4870 X2 그래픽카드
3. 4기가 DDR2-800 FBDIMM RAM
4. 2개의 1,000W 파워가 동원됐군요.

24개의 SSD 하드를 SAS 방식으로 RAID를 구성하여 최고의 성능을 뽑아내려 했습니다.
총 24개의 SSD 하드중 10개는 ARECA RAID를 8개는 ADAPTEC RAID를 6개는 마더보드에 다이렉트로 연결했습니다. 
※SATA, SAS 간단참조
SATA는 데스크탑용 하드디스크 인터페이스 기술인 ATA 근간을 두고 있고, SAS는 서버에 주로 사용되는 SCSI의 후속기술입니다. 그리고 SATA는 사용빈도가 적은 데이터에 접근하는데 적합하며, SAS는 데이터베이스 등과 고부하 서버 업무에 적합합니다. 케이블의 거리제한도 있는데 SATA의 거리제한은 1m SAS의 거리제한은 8m 입니다.

이어서 성능테스트를 보시면
SPEED TEST
  • 데이터 속도가 2019.60/s 로 2GB/s 이상의 데이터 쓰기가 가능합니다.
  • 6개의 문서를 여는데 0.5초
  • 53개의 서로다른 프로그램을 실행시키는데 단 18.09초
SUPER FAST DEFRAG
  • 6TB의  디스크조각모음 실행속도는 약 5초
  • 휴지통에 있는 700개의 파일(5.6GB) 을 지우는데 딜레이없이 싹 사라집니다.
  • 700MB짜리 DVD RIP 으로 변환하는 속도와 2층 에서 DVD타이틀을 떨어뜨리는 속도가 거의 같습니다. 0.8초 
  • 1920X1200 해상도로 색품질은 아주 높게 잡은 크라이시스게임을 실행시켰습니다. 너무 부드럽군요.
  • 고해상도 이미지가 슬라이드식으로 매우 빠르게 넘어가는것을 볼 수 있습니다.
STILL WORKING!
  • 프로그램 실행중 24개의 SSD 하드를 들고 뛰어도 시스템에 아무런 지장을 주지 않습니다.

꿈의 슈퍼컴퓨터의 내면엔 역시 하드디스크가 주인공이군요.
최종환경설정을 보시면 24개의 SSD중
10개는 ARECA RAID를 8개는 ADAPTED RAID 를 나머지는 마더보드에 다이렉트로 연결되었으며, 읽기속도는 2121.29 Mb/s 며, 쓰기는 2000.195 Mb/s 로 확인이 됩니다.

Final setup details
 DRIVES  Connected to
 10  Areca 1680x24
 8  Adaptec 5 series
 6  Direct to D5400XS motherboard

SSD 하드가 대중화가 되면 이렇게 구성해 보는거 어떨까요? 그래도 많이 비싸겠죠?


728x90

+ Recent posts