Language and Complexity Read J & M Chapter 13.. What Do We Mean by Complexity? Informal: How hard is it to analyze and solve the problem? Formal: What.

Slides:



Advertisements
Similar presentations
1. Parties have contractual capacity 2. Contract has legal purpose 3. Offer 4. Acceptance 5. Consideration 6. Statute of Frauds compliance.
Advertisements

PERFORMANCE OF CONTRACT. DELIVERY: DELIVERY: Delivery of goods sold may be made by doing anything which the parties agree shall be treated as delivery.
Is natural language regular? Context –free? (chapter 13)
Insolvency Law and Practices in Korea Business Law Asia & In-House Summit June 2009 Sang-goo Han.
Secured Transactions UCC Title 9. Security Interest An interest in personal property or fixtures that secures payment or performance of a obligation.
Creditors’ Rights and Bankruptcy Chapter 16. Secured Transactions Article 9 of UCC A transaction in which the payment of a debt is secured by collateral.
July 12, Ordinary building materials transform from goods to real property.
Secured Creditor vs. Debtor.  When does secured party have possession of the debtor’s property (collateral)?  Creditor perfected by possession.  After.
Tyrell Robertson & DuRanda Smith
Florida Real Estate Principles, Practices & Law 38th Edition
REMEDIAL MEASURES.
1 Secured Transactions Assignment 7 Treatment of Secured Creditors in Bankruptcy.
Jamie Frost – Franks Society MT10. What is language?
BAILMENT AND PLEDGE.
Long-Term Liabilities
National Credit Amendment Bill “Credit” law concepts and General drafting principles.
© 2007 West Legal Studies in Business, A Division of Thomson Learning Chapter 20 Secured Transactions.
Parsing I Miriam Butt May 2005 Jurafsky and Martin, Chapters 10, 13.
1 Forward and Future Chapter A Forward Contract An legal binding agreement between two parties whereby one (with the long position) contracts to.
Patty Bartlett Logan County Treasurer / Public Trustee.
McGraw-Hill/Irwin ©2008 The McGraw-Hill Companies, All Rights Reserved CHAPTER2CHAPTER2 CHAPTER2CHAPTER2 Financing: Notes and Mortgages.
1 CONTEXT-FREE GRAMMARS. NLE 2 Syntactic analysis (Parsing) S NPVP ATNNSVBD NP AT NNthechildrenate thecake.
Business Law and the Regulation of Business Chapter 51: Transfer and Control of Real Property By Richard A. Mann & Barry S. Roberts.
David M. Harrison, Ph.D. Real Estate Finance Texas Tech University Common Covenants and Clauses Promise to Pay - Specifies principal, interest, penalties,
Chapter 30 Savings Accounts pp
B428 Real Estate Day 3 Brokerage, Appraisal and Prelim Agreements.
Current Liabilities, Contingencies, and the Time Value of Money
1 13. LANGUAGE AND COMPLEXITY 2007 년 11 월 03 일 인공지능연구실 한기덕 Text: Speech and Language Processing Page.477 ~ 498.
Financing: Notes and Mortgages
Real Estate Law Mortgage Foreclosures Real Estate Law Mortgage Foreclosures.
MA/CSSE 474 Theory of Computation More on showing L non-regular (Using Closure)
Quadrennial 2011 Oil and Gas State Assessed & Personal Property.
1 Long-Term Liabilities Chapter 15 ACCT 202 WEEK 4 ACCT 202 WEEK 4.
Revised Chapter 12 Slide #1 Copyright – David A. McGowan All rights reserved Chapter 12 Transfer of Title (Page 225) Deed – an instrument that.
Financing Principles Chapter 14 Zaharopoulos. 3 Financing Instruments 1. Mortgage 2. Deed of Trust 3. Carryback, Installment, Land Contract, Contract.
2-1 Copyright ©2008 by The McGraw-Hill Companies, Inc. All Rights Reserved Chapter 02: Real Estate Financing: Notes and Mortgages McGraw-Hill/Irwin Copyright.
Issues in Joint Development Agreement
Modern Real Estate Practice in Illinois
1 Winding up by the court. 2 Introduction Introduction Winding-up or liquidation Winding-up or liquidation Ending the life of a company Ending the life.
Regular and Nonregular Languages Chapter 8. Languages: Regular or Not? a * b * is regular. { a n b n : n  0} is not. {w  { a, b }* : every a is immediately.
Regular and Nonregular Languages Chapter 8. Languages: Regular or Not? a * b * is regular. { a n b n : n  0} is not. {w  { a, b }* : every a is immediately.
Plant Assets, Natural Resources, and Intangible Assets.
Agency and Employment Law Chap 21 – Agency Law Chap 22 – Employment Law Chap 23 – Unions & the Employment Relationship Chap 24 – Discrimination in Employment.
The Chomsky Hierarchy. Sentences The sentence as a string of words E.g I saw the lady with the binoculars string = a b c d e b f.
Regular and Nonregular Languages Chapter 8. Languages: Regular or Not? a * b * is regular. { a n b n : n  0} is not. {w  { a, b }* : every a is immediately.
Poetry The Pumping Lemma Any regular language L has a magic number p And any long-enough word in L has the following property: Amongst its first p symbols.
© 2011 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license.
HIRE PURCHASE FINANCE AND CONSUMER CREDIT
IAR Legal Affairs presents: RESIDENTIAL FORMS 2015 LISTING CONTRACT.
Regular and Nonregular Languages Chapter 8. Languages: Regular or Not? a * b * is regular. { a n b n : n  0} is not. {w  { a, b }* : every a is immediately.
Regular and Nonregular Languages Chapter 8 1. Languages: Regular or Not? a * b * is regular. { a n b n : n  0} is not. {w  { a, b }* : every a is immediately.
Chapter 13 Section 1 Bobbie K and Juan R. What is a Sale? The Uniform Commercial Code (UCC) governs sales of goods, also governs contracts to sell goods.
Survivor’s Income Benefit Plan Chapter 53 Tools & Techniques of Estate Planning Copyright 2011, The National Underwriter Company1 A Survivor’s Income Benefit.
The Chomsky Hierarchy.
Home Ownership. Mortgages A mortgage is a loan for buying a house Over a period of many years, the borrower repays the loan, plus interest, until he/she.
Chapter 7 Finance Instruments. I. Promissory Notes.
Mortgages. A mortgage is a loan that is secured by property. Mortgages are large loans, and the money is generally borrowed over a large amount of time.
Modern Real Estate Practice in Illinois Eighth Edition Chapter 15: Real Estate Financing: Principles ©2014 Kaplan, Inc.
HOW TO PROTECT YOUR INTEREST IN A SALE CONTRACT Focus on what you “get” when you sign!
Buying and Selling Real Property CHAPTER THIRTY-ONE.
Chapter – 4 Accounting for Hire Purchase
Linear Bounded Automata LBAs
Poetry The Pumping Lemma
FORMAL LANGUAGES AND AUTOMATA THEORY
Computer Science IN ACTION The Chomsky Hierarchy & the Complexity of the English Language.
Real Estate Financing: Principles
PERFORMANCE OF CONTRACT OF SALE OF GOODS
Faculty:- CMA R Gopal MFM M.Phil., FCMA Practicing Cost Accountant
Poetry The Pumping Lemma
DEBT.
Presentation transcript:

Language and Complexity Read J & M Chapter 13.

What Do We Mean by Complexity? Informal: How hard is it to analyze and solve the problem? Formal: What is the average/best case/worst case running time of the best known algorithm to solve the problem? Is that the best we’ll ever be able to do? What capabilities must a computing device to solve the problem have?

The Chomsky Hierarchy recursively enumerable context sensitive context free regular

The Chomsky Hierarchy - Modified recursively enumerable context sensitive context free regular recursive

Review of Grammars Regular grammars: X  a, X  , X  aX Context free grammars: X   Context sensitive grammars:  X   , |  X  |  |  | Unrestricted grammars (for RE languages):   ,  

Why Do We Care? Computational Complexity Automaton Required Regular  (n) FSM Context Free  (n 3 ) (*) PDA Context Sensitive NSPACE(n)Linear Bounded Automaton Recursively Enumerable undecidableTuring Machine

Where Does English Fall? We need to refine the question: The weak generative capacity of a grammar is the set of strings that the grammar generates. The strong generative capacity of a grammar is the set of structures that the grammar generates. Note that strong generative capacity mirrors linguistic and psychological reality much better than weak generative capacity does. Example: The cat with the furry tail purred.

Where Does English Fall – The Finiteness Question Is the set of English sentences finite? Issues: Size of vocabulary Length of sentences I know that "1" isn't the largest number and I know that "2" isn't the largest number (...) If the set of English sentences is finite, then a regular grammar has enough weak generative capacity.

Is This English? In the event that the Purchaser defaults in the payment of any instalment of purchase price, taxes, insurance, interest, or the annual charge described elsewhere herein, or shall default in the performance of any other obligations set forth in this Contract, the Seller may: at his option: (a) Declare immediately due and payable the entire unpaid balance of purchase price, with accrued interest, taxes, and annual charge, and demand full payment thereof, and enforce conveyance of the land by termination of the contract or according to the terms hereof, in which case the Purchaser shall also be liable to the Seller for reasonable attorney's fees for services rendered by any attorney on behalf of the Seller, or (b) sell said land and premises or any part thereof at public auction, in such manner, at such time and place, upon such terms and conditions, and upon such public notice as the Seller may deem best for the interest of all concerned, consisting of advertisement in a newspaper of general circulation in the county or city in which the security property is located at least once a week for Three (3) successive weeks or for such period as applicable law may require and, in case of default of any purchaser, to re- sell with such postponement of sale or resale and upon such public notice thereof as the Seller may determine, and upon compliance by the Purchaser with the terms of sale, and upon judicial approval as may be required by law, convey said land and premises in fee simple to and at the cost of the Purchaser, who shall not be liable to see to the application of the purchase money; and from the proceeds of the sale: First to pay all proper costs and charges, including but not limited to court costs, advertising expenses, auctioneer's allowance, the expenses, if any required to correct any irregularity in the title, premium for Seller's bond, auditor's fee, attorney's fee, and all other expenses of sale occurred in and about the protection and execution of this contract, and all moneys advanced for taxes, assessments, insurance, and with interest thereon as provided herein, and all taxes due upon said land and premises at time of sale, and to retain as compensation a commission of five percent (5%) on the amount of said sale or sales; SECOND, to pay the whole amount then remaining unpaid of the principal of said contract, and interest thereon to date of payment, whether the same shall be due or not, it being understood and agreed that upon such sale before maturity of the contract the balance thereof shall be immediately due and payable; THIRD, to pay liens of record against the security property according to their priority of lien and to the extent that funds remaining in the hands of the Seller are available; and LAST, to pay the remainder of said proceeds, if any, to the vendor, his heirs, personals representatives, successors or assigns upon the delivery and surrender to the vendee of possession of the land and premises, less costs and excess of obtaining possession.

Where Does English Fall – The Grammar Size and Complexity Issue Consider the rule: S  NP VP But how can we handle agreement: S  SNP SVP SNP  … vs. PNP  … SVP  … PVP  … PP  prep SNP PP  prep PVP

Assume Not Finite (Either because it really isn’t finite or because we care about strong generative capacity.) English isn’t regular. English can’t be characterized with a context-free grammar without sacrificing simplicity and elegance. At least some natural languages aren’t context free at all.

English isn’t Regular – An Example Examples: The boy she saw yesterday was crying. The boy she saw coming down the road was crying. Grammar: S  NP VP (not allowed) So we have to write something like: S  the X X  boy YX  NP-det VP Y  she ZY  NP-head VP Z  saw QZ  VP-gap VP

English isn’t Regular – The Proof If S 1 then S 2 Either S 3 or S 4 The man who said S 5 is arriving today. If either the man who said either quit or stay is arriving today or the man who said S5 is arriving tomorrow, then the man who said S5 is arriving the day after tomorrow. Let: if   athen  a either  bor  b others   Then this sentence is of the form abbbba, which is an instance of x x R.

English isn’t Regular – Another Proof The cat the dog the rat the elephant admired bit chased likes tuna fish. Form: (the noun) n (transitive verb) n-1 likes tuna fish.

English isn’t CF – The Proof The nested structures that we’ve just seen can easily be described with a context-free grammar. But what about sentences of the form ww: x 1 x 2 x 3 x 4 x 5 …. y 1 y 2 y 3 y 4 y 5 … (we call these cross serial dependencies) In Swiss German: Jan säit das mer em Hans es huus hälfed aastriiche. Jan says that we Hans/DAT the house/ACC helped paint

Psychological Complexity See short discussion in J & M.