52 Pages

CSCI6268L04

Course: CSCI 6268, Fall 2004
School: Colorado
Rating:
 
 
 
 
 

Word Count: 2942

Document Preview

of Foundations Network and Computer Security John Black Lecture #4 Sep 2nd 2004 CSCI 6268/TLEN 5831, Fall 2004 Announcements Please sign up for class mailing list Quiz #1 will be on Thursday, Sep 9th About 30 mins At end of class Office hours day before and morning of Covers all lecture materials and assigned readings Blockcipher Review DES Old, 64-bit blocksize, 56 bit keys Feistel construction Never...

Register Now

Unformatted Document Excerpt

Coursehero >> Colorado >> Colorado >> CSCI 6268

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
of Foundations Network and Computer Security John Black Lecture #4 Sep 2nd 2004 CSCI 6268/TLEN 5831, Fall 2004 Announcements Please sign up for class mailing list Quiz #1 will be on Thursday, Sep 9th About 30 mins At end of class Office hours day before and morning of Covers all lecture materials and assigned readings Blockcipher Review DES Old, 64-bit blocksize, 56 bit keys Feistel construction Never broken except for exhaustive key search AES New, 128-bit blocksize, 128-256 bit keys Non-Feistel Fast, elegant, so far so good Aren't We Done? Blockciphers are only a start They take n-bits to n-bits under a k-bit key Oftentimes we want to encrypt a message and the message might be less than or greater than n bits! We need a "mode of operation" which encrypts any M {0,1}* There are many, but we focus on three: ECB, CBC, CTR ECB Electronic Codebook This is the most natural way to encrypt It's what we used with the Substitution Cipher For blockcipher E under key K: n)+ First, pad (if required) to ensure M ({0,1} Write M = M1 M2 ... Mm where each Mi has size n-bits Then just encipher each chunk: Ci = EK(Mi) for all 1 i m Ciphertext is C = C1 C2 ... Cm ECB (cont) What's bad about ECB? Repeated plaintext blocks are evident in the ciphertext Called "deterministic encryption" and considered bad This was the feature of the Substitution Cipher that allowed us to do frequency analysis Not as bad when n is large, but it's easy to fix, so why not fix it! Encrypting the same M twice will yield the same C Usually we'd like to avoid this as well Goals of Encryption Cryptographers want to give up exactly two pieces of information when encrypting a message 1) That M exists 2) The approximate length of M The military sometimes does not even want to give up these two things! Traffic analysis We definitely don't want to make it obvious when a message repeats CBC Mode Encryption Start with an n-bit "nonce" called the IV Initialization Vector Usually a counter or a random string Blockcipher E under key K, M broken into m blocks of n bits as usual C0 = IV Ci = EK(Mi Ci-1) for all 1 i m M1 IV EK EK EK M2 Mm C1 C2 Cm Features of CBC Mode Ciphertext is C = C0 C1 ... Cm Ciphertext expansion of n-bits (because of C0) Same block Mi, or same message M looks different when encrypted twice under the same key (with different IV's) No parallelism when encrypting Need to know Ci before we can encipher Mi+1 Decryption is parallelizable however CBC mode is probably the most widely-used mode of operation for symmetric key encryption Digression on the One-Time Pad Suppose Alice and Bob shared a 10,000 bit string K that was secret, uniformly random Can Alice send Bob a 1KB message M with "perfect" security? 1KB is 8,000 bits; let X be the first 8,000 bits of the shared string K Alice sets C = M X, and sends C to Bob Bob computes C X and recovers M Recall that M X X = M Security of the One-Time Pad Consider any bit of M, mi, and the corresponding bits of X and C, (xi, ci) Then ci = mi xi Given that some adversary sees ci go across a wire, what can he discern about the bit mi? Nothing! Since xi is equally likely to be 0 or 1 So why not use the one-time pad all the time? Shannon proved (1948) that for perfect security the key must be at least as long as the message Impractical One-Time Pad (cont) Still used for very-top-secret stuff Purportedly used by Russians in WW II Note that it is very important that each bit of the pad be used at most one time! The infamous "two time pad" is easily broken Imagine C = M X, C' = M' X Then C C' = M X M' X = M M' Knowing the xor of the two messages is potentially very useful n-time pad for large n is even worse (WEP does this) Counter Mode CTR Blockcipher E under key K, M broken into m blocks of n bits, as usual Nonce N is typically a counter, but not required C0 = N Ci = EK(N++) Mi Ciphertext is C = C0 C1 ... Cm CTR Mode Again, n bits of ciphertext expansion Non-deterministic encryption Fully parallelizable in both directions Not that widely used despite being known for a long time People worry about counter overlap producing pad reuse Why I Like Modes of Operation Modes are "provably secure" Unlike blockciphers which are deemed "hopefully secure" after intense scrutiny by experts, modes can be proven secure like this: Assume blockcipher E is secure (computationally indistinguishable from random, as we described) Then the mode is secure in an analogous black-box experiment The proof technique is done via a "reduction" much like you did in your NP-Completeness class The argument goes like this: suppose we could break the mode with computational resources X, Y, Z. Then we could distinguish the blockcipher with resources X', Y', Z' where these resources aren't that much different from X, Y, and Z Security Model Alice and Bob Traditional names Let's us abbreviate A and B Adversary is the bad guy This adversary is passive; sometimes called "eve" Note also the absence of side-channels Power consumption, timing, error messages, etc Alice Adversary Key K Bob Key K Various Attack Models Known-Ciphertext Attack (KCA) You only know the ciphertext Requires you know something about the plaintext (eg, it's English text, an MP3, C source code, etc) This is the model for the Sunday cryptograms which use a substitution cipher Known-Plaintext Attack (KPA) You have some number of plaintext-ciphertext pairs, but you cannot choose which plaintexts you would like to see This was our model for exhaustive key search and the meet in the middle attack Attack Models (cont) Chosen-Plaintext Attack (CPA) You get to submit plaintexts of your choice to an encryption oracle (black box) and receive the ciphertexts in return Models the ability to inject traffic into a channel Send a piece of disinformation to an enemy and watch for its encryption Send plaintext to a wireless WEP user and sniff the traffic as he receives it This is the model we used for defining blockcipher security (computational indistinguishability) Attack Models (cont) Chosen-Ciphertext Attack (CCA) The strongest definition (gives you the most attacking power) You get to submit plaintexts and ciphertexts to your oracles (black boxes) Sometimes called a "lunchtime attack" We haven't used this one yet, but it's a reasonable model for blockcipher security as well So What about CBC, for example? CBC Mode encryption It's computationally indistinguishable under chosen plaintext attack You can't distinguish between the encryption of your query M and the encryption of a random string of the same length In the lingo, "CBC is IND-CPA" It's not IND-CCA You need to add authentication to get this The Big (Partial) Picture Second-Level Protocols (Can do proofs) First-Level Protocols (Can do proofs) SSH, SSL/TLS, IPSec Electronic Cash, Electronic Voting Symmetric Encryption MAC Schemes Asymmetric Encryption Digital Signatures Primitives (No one knows how to prove security; make assumptions) Block Ciphers Stream Ciphers Hash Functions Hard Problems Symmetric Authentication: The Intuitive Model Here's the intuition underlying the authentication model: Alice and Bob have some shared, random string K They wish to communicate over some insecure channel An active adversary is able to eavesdrop and arbitrarily insert packets into the channel Alice Adversary Key K Bob Key K Authentication: The Goal Alice and Bob's Goal: Alice wishes to send packets to Bob in such a way that Bob can be certain (with overwhelming probability) that Alice was the true originator Adversary's Goal: The adversary will listen to the traffic and then (after some time) attempt to impersonate Alice to Bob If there is a significant probability that Bob will accept the forgery, the adversary has succeeded The Solution: MACs The cryptographic solution to this problem is called a Message Authentication Code (MAC) A MAC is an algorithm which accepts a message M, a key K, and possibly some state (like a nonce N), and outputs a short string called a "tag" M K N MAC tag = MACK(M, N) MACs (cont) Alice computes tag = MACK(M, N) and sends Bob the message (M, N, tag) Bob receives (M', N', tag') and checks if MACK(M', N') == tag' If YES, he accepts M' as authentic If NO, he rejects M' as an attempted forgery Note: We said nothing about privacy here! M might not be encrypted Bob (M', N', tag') ?? MACK(M', N') == tag' Y N ACCEPT REJECT Security for MACs The normal model is the ACMA model Adaptive Chosen-Message Attack Adversary gets a black-box called an "oracle" Oracle contains the MAC algorithm the and key K Adversary submits messages of his choice and the oracle returns the MAC tag After some "reasonable" number of queries, the adversary must "forge" To forge, the adversary must produce a new message M* along with a valid MAC tag for M* If no adversary can efficiently forge, we say the MAC is secure in the ACMA model Building a MAC with a Blockcipher Let's use AES to build a MAC A common method is the CBC MAC: CBC MAC is stateless (no nonce N is used) Proven security in the ACMA model provided messages are all of once fixed length Resistance to forgery quadratic in the aggregate length of adversarial queries plus any insecurity of AES Widely used: ANSI X9.19, FIPS 113, ISO 9797-1 M1 M2 Mm AESK AESK AESK tag CBC MAC notes Just like CBC mode encryption except: No IV (or equivalently, IV is 0n) We output only the last value Not parallelizable Insecure if message lengths vary Breaking CBC MAC If we allow msg lengths to vary, the MAC breaks To "forge" we need to do some (reasonable) number of queries, then submit a new message and a valid tag Ask M1 = 0n We're done! we get t = AESK(0n) back We announce that M* = 0n || t has tag t as well (Note that A || B denotes the concatenation of strings A and B) Varying Message Lengths: XCBC There are several well-known ways to overcome this limitation of CBC MAC XCBC, is the most efficient one known, and is provablysecure (when the underlying block cipher is computationally indistinguishable from random) Uses blockcipher key K1 and needs two additional n-bit keys K2 and K3 which are XORed in just before the last encipherment A proposed NIST standard (as "CMAC") M1 M2 Mm K2 K3 if n divides |M| otherwise AESK1 AESK1 AESK1 tag UMAC: MACing Faster In many contexts, cryptography needs to be as fast as possible High-end routers process > 1Gbps High-end web servers process > 1000 requests/sec But AES (a very fast block cipher) is already more than 15 cycles-per-byte on a PPro Block ciphers are relatively expensive; it's possible to build faster MACs UMAC is roughly ten times as fast as current practice UMAC follows the Wegman-Carter Paradigm Since AES is (relatively) slow, let's avoid using it unless we have to Wegman-Carter MACs provide a way to process M first with a non-cryptographic hash function to reduce its size, and then encrypt the result Message M hash key hash function hash(M) encryption key encrypt tag The Ubiquitous HMAC The most widely-used MAC (IPSec, SSL, many VPNs) Doesn't use a blockcipher or any universal hash family Instead uses something called a "collision resistant hash function" H Sometimes called "cryptographic hash functions" Keyless object more in a moment HMACK(M) = H(K opad || H(K ipad || M)) opad is 0x36 repeated as needed ipad is 0x5C repeated as needed Notes on HMAC Fast Faster than CBC MAC or XCBC Because these crypto hash functions are fast Slow Slower than UMAC and other universal-hash-family MACs Proven security But these crypto hash functions have recently been attacked and may show further weaknesses soon What are cryptographic hash functions? A cryptographic hash function takes a message from {0,1}* and produces a fixed size output Output is called "hash" or "digest" or "fingerprint" There is no key The most well-known are MD5 and SHA-1 but there are other options MD5 outputs 128 bits SHA-1 outputs 160 bits Message % md5 Hello There ^D A82fadb196cba39eb884736dcca303a6 % Hash Function Output e.g., MD5,SHA-1 512 bits SHA-1 ... Mm 0 t 15 16 t 79 E H4i-1 M1 M2 for i = 1 to m do Wt = { t-th word of Mi ( Wt-3 Wt-8 Wt-14 Wt-16 ) << 1 B H1i-1; C H2i-1; D H3i-1; A H0i-1; for t = 1 to 80 do T A << 5 + gt (B, C, D) + E + Kt + Wt E D; end H0i A + H0i-1; H3i D + H3i-1; H1i B + H1i-1; H4i E + H4i-1 H2i C+ H2i-1; D C; C B >> 2; B A; A T end return H0m H1m H2m H3m H4m 160 bits Real-world applications Hash functions are pervasive Message authentication codes (HMAC) Digital signatures (hash-and-sign) File comparison (compare-by-hash, eg, RSYNC) Micropayment schemes Commitment protocols Timestamping Key exchange ... A cryptographic property (quite informal) 1. Collision resistance given a hash function it is hard to find two colliding inputs BAD: H(M) = M mod 701 M H H M' {0,1}n Strings More cryptographic properties 1. Collision resistance given a hash function it is hard to find two colliding inputs 2. Second-preimage resistance given a hash function and given a first input, it is hard to find a second input that collides with the first given a hash function and given an hash output it is hard to invert that output 3. Preimage resistance Merkle-Damgard construction Compression function M1 n M2 M3 IV k f k h1 f h2 f h3 = H (M) Fixed initial value Chaining value MD Theorem: if f is CR, then so is H Mi1 M2 512 bits ... Mm for i = 1 to m do Wt = { t-th word of Mi ( Wt-3 Wt-8 Wt-14 Wt-16 ) << 1 B H1i-1; C H2i-1; D H3i-1; 0 t 15 16 t 79 E H4i-1 A H0i-1; for t = 1 to 80 do T A << 5 + gt (B, C, D) + E + Kt + Wt 160 bits E D; D C; C B >> 2; B A; A T end H0..4i-1 H0i A + H0...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

UMass (Amherst) - ECE - 122
ECE 122 Engineering Problem Solving with JavaLecture 6Problem Definition and ImplementationECE122 L6: Problem Definition and ImplementationFebruary 14, 2008Outline Problem: Create, read in and print out four sets of student grades Setting up
UMass (Amherst) - ECE - 669
Lecture1: Introduction1Administrative infoWelcome to ECE669! Welcome off-campus students! Csaba Andras Moritz, Associate Professor @ ECE/UMASS Questions/discussions/email questions are welcome! My Focus: Design of Parallel Computer SystemsChips
UMass (Amherst) - ECE - 669
L51Commercial Application Support21Commercial Application Support-Not in textbook! Commercial enterprise oriented applications are commonly run on SMP type of machines to achieve high throughputs High-end is considered to be more massive
RIT - SMAM - 314
SMAM 314 Computer Assignment 6 Due 5/15/07 I For the data of problem 6.11 p.391 (SeeTable 6.19) Using Minitab A. Make a scatterplotB. Fit the regression line.Regression Analysis: y versus x The regression equation is y = - 1822 + 435 x Predictor C
RIT - SMAM - 351
SMAM 351Homework 8 Solution1. A. Using the lack of memory property of the exponential distribution P[X &lt; 0.7) = 0 .5e.5x dx = e.5x B. The number of customers that arrive each minute is a Poisson distribution with mean 5. The number that arrive in
RIT - SMAM - 314
p 1 of 9Information about SMAM 314-Dr. Gruber's Section Instructor: Dr. M. Gruber office 08-3250 Phone 475-2541 email mjgsma@rit.edu Web page http:/www.rit.edu/~mjgsma/smam314winter00/hw.html (The web page may also be found by going to my home page
RIT - SURGERY - 0308
Total Hip ReplacementBy Krystal Stephenshttp:/www.rit .edu/~kjs0308/Surgery2_072/Total%20hip%20replacement/Total_hip_replacement.htmWhat is Total Hip Replacement? A total hip replacement is a surgical procedure where the diseased cartilage and b
UMass (Amherst) - CHEM - 121
Chemistry 121H Fall, 2005 Name Cumulative Final Exam 170 points total Please sign the following statement: I swear that I did not cheat on this exam.ID#Electronegativities: F = 4.0; O = 3.5; N = 3.0; Cl = 3.0; Br = 2.8; C = 2.5; S = 2.5; I = 2.5;
UMass (Amherst) - CHEM - 241
RIT - JRW - 9428
James Wegner Frey Digital Asset Management 24 February 2007 Final Exam 1. Must separate format from content The main reasons for separating format from content are to keep your files organized. It is important to keep youre your content saved only on
BYU - LECT - 621
CS 521Nonparametric Methods - Metrics1Distance?What's more different? A big difference in just one feature? Smaller differences in two features? Lots of small differences? Lots of ways to measure &quot;distance&quot; than just Euclidean distance.CS
BYU - LECT - 621
CS 521Introduction to Neural Networks1Neural NetworksWhat? Combinations of simple processing units with inputs, output(s), and a function relating the two.Why? 1. Massive parallelism (connectionist computing) 2. Can model biological systems
UMass (Amherst) - CS - 601
CMPSCI 601:Turing MachinesLecture 4: nite set of states; : &quot; ! 1 1 0 11&amp;3 4! 20 1#5 5 765)('%# &amp; $: nite set of symbols; 5 5 675 5 5 765 5 5 675 5 5 675 5 5 675 5 5 675 5 5 675 5 5
UMass (Amherst) - CS - 601
CMPSCI 601:Recall From Last TimeLecture 7Th 6.2: The busy beaver function, larger than any total, recursive function.Thm. 6.4: (Unsolvability of Halting Problem) Let,Then,HALT is r.e. but not recursive.Listing of all r.e. sets:Cor. 6.
UMass (Amherst) - CMPSCI - 201
CMPSCI 201 Spring 2004 Professor William T. VertsLecture #35 May 5, 2004 I Feel the Need for SpeedThere are a number of methods for increasing the throughput of a processor. The first and most obvious is to increase the raw clock speed. While
UMass (Amherst) - CS - 645
IntroductionHash-based indexes are best for equality selections. Cannot support range searches. E.g., retrieve a student with id 1234 or all students at 20.Hash-Based IndexesYanlei Diao UMass AmherstStatic and dynamic hashing techniques ex
UMass (Amherst) - CS - 445
Normalization26Evils of Redundancy When a database schema is poorly designed we get anomalies. Redundancy is at the root of several problems associated with relational schemas:Redundant storage: data is repeated Update anomalies: need to chang
UMass (Amherst) - CS - 445
Access Methods and Sorting for Query ProcessingYanlei Diao UMass Amherst March 4, 2008Slides Courtesy of R. Ramakrishnan and J. Gehrke1OutlineComparing access methods External sorting2Comparing Access MethodsHeap file: random order Sorte
UMass (Amherst) - CS - 445
CMPSCI445 Information SystemsProf. Yanlei DiaoUniversity of Massachusetts AmherstOutline Overview of databases and DBMS Course topics Course requirementsYanlei Diao, University of Massachusetts Amherst1/29/2008DatabaseDatabaseDatabas
UMass (Amherst) - CS - 645
Overview of Storage and IndexingCMPSCI 645 Feb 28, 2008Slides Courtesy of R. Ramakrishnan and J. Gehrke1DBMS ArchitectureQuery Parser Query Rewriter Query Optimizer Query ExecutorFile &amp; Access MethodsLock ManagerLog ManagerBuffer Mana
UMass (Amherst) - CS - 645
645: Database Design and ImplementationYanlei DiaoUniversity of Massachusetts AmherstOutline Overview of databases and DBMSs Course topics and requirementsYanlei Diao, University of Massachusetts Amherst2/4/09Databases and DBMSs A databa
UMass (Amherst) - CS - 445
SQL, continued.CMPSCI 445 September 21, 2006Some slide content courtesy of Ramakrishnan &amp; Gehrke, Dan Suciu.SQL Overview Query capabilities SELECT-FROM-WHERE blocks, Basic features, ordering, duplicates Set ops (union, intersect, except)
UMass (Amherst) - CS - 445
SQL, continued.CMPSCI 445 September 19, 2006Some slide content courtesy of Ramakrishnan &amp; Gehrke, Dan Suciu.SQL Overview Query capabilities SELECT-FROM-WHERE blocks, Basic features, ordering, duplicates Set ops (union, intersect, except)
UMass (Amherst) - CS - 445
Tree-Structured IndexesYanlei Diao UMass Amherst Feb 28, 2007Slides Courtesy of R. Ramakrishnan and J. Gehrke1B+ Tree: Most Widely Used IndexHeight-balanced given arbitrary inserts/deletes.Fanout: # child pointers of a non-leaf node F = avg.
UMass (Amherst) - MATH - 233
Math 233Practice Exam 2Fall 20051. Find the critical points of f (x, y) = x3 + y 2 + 2xy 4x 3y + 5 and classify each as a relative maximum, relative minimum or saddle point. 2. An open (no top) rectangular box must have a volume of 6 cubic fe
UMass (Amherst) - MATH - 697
Homework Problems1) Consider the model utt = uxx + 2(u - u3 ) 1. For traveling wave solutions u(x, t) = f (x - ct) with c2 &lt; 1, set up the relevant ODE and find the corresponding potential, and phase plane representation of the solutions. 2. For di
Concordia Chicago - ACE - 104
Copyright (c) [2002]. Roger L. Costello. All Rights Reserved.1REST (Representational State Transfer)Roger L. Costello XML Technologies CourseCopyright (c) [2002]. Roger L. Costello. All Rights Reserved.2Acknowledgements I would like to th
East Los Angeles College - PHY - 221
M Grell, PHY221 2008/09 Semester 1 Problems class questions Sheet 1 1. Show that the two representations of harmonic oscillations:x(t) = A sin 0t + B cos 0t and x(t) = X max cos( 0t + )are equivalent. Express Xmax, in terms of A,B, as simply a
UMass (Amherst) - SOM - 541
Sch-Mgnt 541 Auditing Assignment PacketChapter 6 End-of-Chapter materials in the Ricchiute textbook Problems and Discussion Cases: 6-2 6-6 6-7 6-13 Financial Statement Assertions Analytical Procedures Applying Analytical Procedures Cognitive Heuris
East Los Angeles College - PHY - 221
PHY221, Martin Grell 2008/09, Semester 1 Problems Class Questions Sheet 2 1 a.) Given a point in cylindrical coordinates (,z), express it in Cartesian coordinates. (Define = 0 for x direction). [1] b.) Given a point in spherical coordinates (r,), ex
Concordia Chicago - ACE - 104
WSDLHomeworkPlenioWSDLStructureSource: w3schools.comWSDLNamespacesnamespaces in the wsdlWSDLTypesdefines the xml types define or include schemaWSDLTypesWSDLMessagesthe input and output messages that are being exchangedWSDLPortTypesd
Concordia Chicago - ACE - 104
WSDL 1&lt;!- SOAP Request Document/Literal Message -&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;SOAP-ENV:Envelope xmlns:SOAPENV=&quot;http:/schemas.xmlsoap.org/soap/envelope/&quot;&gt; &lt;SOAP-ENV:Header/&gt; &lt;SOAP-ENV:Body&gt; &lt;PaymentScheduleRequest xmlns=&quot;http:/www.cccis
Concordia Chicago - ACE - 104
WSDL 3&lt;!- SOAP Request Document/Literal Message -&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;SOAP-ENV:Envelope xmlns:SOAPENV=&quot;http:/schemas.xmlsoap.org/soap/envelope/&quot;&gt; &lt;SOAP-ENV:Header/&gt; &lt;SOAP-ENV:Body&gt; &lt;RealEstateRequest xmlns=&quot;http:/www.cccis.com/
Concordia Chicago - CSPP - 51038
Homework 3Due July 30Redo homework 2 using some DOM model in some language.
Colorado - AMATH - 2360
APPM 2360Differential EquationsSpring 2008Lecture 010, MWF 8:008:50 AM, ECCR 150 Terry Haut, STAD 152, (303) 735 3610 terry.haut@colorado.edu Office Hours: MWF 9:30-10:30 AM Lecture 030, MWF 2:002:50 PM, ECCR 265 Theodoros Horikis, ECCR 251, (3
Concordia Chicago - CSPP - 51038
Copyright (c) [2002]. Roger L. Costello. All Rights Reserved.1REST (Representational State Transfer)Roger L. Costello XML Technologies CourseCopyright (c) [2002]. Roger L. Costello. All Rights Reserved.2Acknowledgements I would like to th
Concordia Chicago - CSPP - 51038
XML Simple TypesCSPP51038 shortcourseSimple Types Recall that simple types are composed of text-only values. All attributes are of simple type Elements with text and no attributes are of simple type Careful: Elements with text and attributes a
Concordia Chicago - CSPP - 51038
Parsing XML into programming languagesJAXP, DOM, SAX, JDOM/DOM4J, Xerces, Xalan, JAXBParsing XML Goal: read XML files into data structures in programming languages Possible strategies Parse by hand with some reusable libraries Parse into gen
Concordia Chicago - CSPP - 51038
XML Simple TypesCSPP51038 shortcourseSimple Types Recall that simple types are composed of text-only values. All attributes are of simple type Elements with text and no attributes are of simple type Careful: Elements with text and attributes a
Concordia Chicago - CSPP - 58001
Due Monday, April 13 5PMFloating Point/Matlab warmupFor each of the following, show all of your work. You do nothave to write any code.Assuming always normalized form:1. Work out the minimum and maximum values of an ieee doubleprecision floa
Concordia Chicago - LESSON - 58001
Due Monday, April 13 5PMFloating Point/Matlab warmupFor each of the following, show all of your work. You do nothave to write any code.Assuming always normalized form:1. Work out the minimum and maximum values of an ieee doubleprecision floa
Concordia Chicago - CSPP - 58001
Covered: 1. floating point representation with focus on ieee standard 2. Basic intro to matlab 3. Intro to concepts or 1d root finding (to be continued)Readings: Numerical Recipes ch. 8Homework: assigned and included in this directory
Concordia Chicago - LESSON - 58001
Covered: 1. floating point representation with focus on ieee standard 2. Basic intro to matlab 3. Intro to concepts or 1d root finding (to be continued)Readings: Numerical Recipes ch. 8Homework: assigned and included in this directory
UMass (Amherst) - PHIL - 110
Rules Introduced Day 1INTRO LOGICDAY 25Ov[v] [o] OLD name[o] v[v] OLD nameIDerivations in PL 41a name counts as OLD precisely if it occurs somewhere unboxed and uncancelled3OverviewExam 1 Exam 2 Exam 3 Exam 4 6 derivations Exam
Concordia Chicago - CSPP - 51038
Quiz 1CSPP53025April 7, 20041. What is the difference between a &quot;well-formed&quot; and a &quot;valid&quot; XML document?2. What is the role of an XML parser?3. What is an advantage of using XML vs. html to talk to a web browser?4. What is a disadvant
Concordia Chicago - CSPP - 51038
Quiz2Create a sample XML file that is valid according to following schema:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;xs:schema xmlns:xs=&quot;http:/www.w3.org/2001/XMLSchema&quot; elementFormDefault=&quot;qualified&quot; attributeFormDefault=&quot;unqualified&quot;&gt;&lt;xs:element
Concordia Chicago - CSPP - 51038
CSPP53025Quiz 31. In the SAX parser model, what does the additional (second) argument to the parse method represent?2) Name two potential advantages of using DOM vs. SAX3) Name two potential advantages of using SAX vs. DOM4) Order the fol
Concordia Chicago - CSPP - 51038
1. Write an equivalent, simpler version of this xsl program.&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http:/www.w3.org/1999/XSL/Transform&quot; xmlns:xsi=&quot;http:/www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;xsl:template ma
Colorado - AMATH - 2350
APPM 2350FINALFALL 2003On the front of your bluebook, print your name, student number, the name of your instructor and a grading table. The grading table should be numbered from 1 to 7. Apart from problem 1 (for which you should give only the a
BYU - DEG - 216
0 -&gt; -o1 -&gt; /raid/htdocs/deg/demos/live_demo/demo/default_data/defaultontsrc/book.ont2 -&gt; -p3 -&gt; /raid/htdocs/deg/demos/live_demo/user_data/deg216_164_140_107/am/4 -&gt; -n5 -&gt; 10006 -&gt; -r7 -&gt; /raid/htdocs/deg/demos/live_demo/ontology/ontology8
UMass (Amherst) - CS - 383
Lecture 10: Logical Agents &amp; Propositional LogicCMPSCI 383: Artificial Intelligence Instructor: Shlomo ZilbersteinLogical Reasoning Example! !!!!Vincent has been murdered, and Arthur, Bertram, and Carleton are suspects. Arthur says he did
UMass (Amherst) - CS - 383
Todays lecture Lecture 9: Adversarial SearchCMPSCI 383: Artificial Intelligence Instructor: Shlomo Zilberstein!! ! ! ! !Competitive multi-agent environments modeled as games Adversarial search techniques The minimax algorithm Alpha-Beta pruning
UMass (Amherst) - CS - 383
Todays lecture Lecture 4: Local SearchCMPSCI 383: Artificial Intelligence Instructor: Shlomo Zilberstein! ! ! !Local search algorithms Hill-climbing Simulated annealing Genetic algorithms1Shlomo Zilberstein University of Massachusetts2Lo
UMass (Amherst) - CS - 383
Todays lecture Lecture 13: Inference in FOLCMPSCI 383: Artificial Intelligence Instructor: Shlomo Zilberstein! !Knowledge representation in FOL Matching rules and facts using unification Inference procedures: forward-chaining, backward-chaining,
UMass (Amherst) - CS - 383
Todays lecture Lecture 7: Abstraction and Hierarchical SearchCMPSCI 383: Artificial Intelligence Instructor: Shlomo Zilberstein! ! ! ! !Where do heuristics come from? Generating heuristics using abstraction Using abstraction to speedup search Hie
UMass (Amherst) - CS - 383
Lecture 11: Reasoning in Propositional LogicCMPSCI 383: Artificial Intelligence Instructor: Shlomo ZilbersteinToday's lecture! ! ! !Reasoning in propositional logic Theorem proving using satisfiability Forward and backward chaining Theorem prov
Concordia Chicago - CSPP - 51038
Last Abraham Abram Ahmad Alcantar Alexander Bauska Benson Bishof Bishop Brocker Bryce Carroll Cherian Clark Cousins Cross Dantes Davis Davis Dewitt Dickinson Discepola Dugan Ellenberger Finn Fuchs Galassi Gershenson Gholson Gomez Hanrahan Holtzman Ho
Concordia Chicago - CSPP - 51036
Final AssignmentTime: one weekYou will write an end-user banking application that manages a list of borrowers.The application will support the following commands:supported commands: add, query, remove, edit help, set, exitEach is described in
Concordia Chicago - CSPP - 51038
This application is generally designed to parse an XML document and display its data in a text file. It is specifically designed to parse the included document: &quot;musical.xml&quot;. An XML Schema document called &quot;musical.xsd&quot; is also included and may be
McGill - COMP - 652
COMP 652: Assignment 5 Solutions1. K-MeansThere are 6 nal clusters; the centers, and corresponding number of elements, are: (241.2296, 238.6252, 233.8629) 4930 (194.4116, 136.3331, 90.9436) 15190 (136.2656, 61.0897, 10.1039) 52535 (157.2917
Colorado - MATH - 1300
WORKSHEET 12MATH 1300November 13, 2008Goal: To study the area under a curve without directly using the area function A(x). 1. The United States Postal Service used to charge postage for a first class domestic letter as follows: The postage was