CS122B: Projects in Databases and Web Applications Winter 2019

Slides:



Advertisements
Similar presentations
Chicago Band Connection Developed by Chutes & Ladders.
Advertisements

Query Rewriting for Extracting Data Behind HTML Forms Xueqi Chen Department of Computer Science Brigham Young University March, 2003 Funded by National.
1 of 7 A High-Performance Data Mining Framework in MySQL Dr. Lutz Hamel Tiegeng Ren Dept. of Computer Science in URI 3/31/2003.
Distance Functions for Sequence Data and Time Series
Liang Jin * UC Irvine Nick Koudas University of Toronto Chen Li * UC Irvine Anthony K.H. Tung National University of Singapore VLDB’2005 * Liang Jin and.
Accurately Detect Parked Domain Typo- squatting Attacks Mishari Almishari and Xiaowei Yang University of California, Irvine Donald Bren School of Information.
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
1 Notes 06: Efficient Fuzzy Search Professor Chen Li Department of Computer Science UC Irvine CS122B: Projects in Databases and Web Applications Spring.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
1 CS222: Principles of Database Management Fall 2010 Professor Chen Li Department of Computer Science University of California, Irvine Notes 01.
These materials are prepared only for the students enrolled in the course Distributed Software Development (DSD) at the Department of Computer.
Class 5 PHP MySQL Robert Mudge Reference:
FUNCTIONS AND STORED PROCEDURES & FUNCTIONS AND PROTECTING A DB AND PHP (Chapters 9, 15, 18)
CS 174: Web Programming September 23 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
Experiments An Efficient Trie-based Method for Approximate Entity Extraction with Edit-Distance Constraints Entity Extraction A Document An Efficient Filter.
1 SQL Tarek El-Shishtawy Professor Ass. Of Computer Engineering.
Inventory Management System for Department of Computer Science Group Number
Interoperable Visualization Framework towards enhancing mapping and integration of official statistics Haitham Zeidan Palestinian Central.
8 1 Chapter 8 Advanced SQL Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Einführung in die Programmierung Introduction to Programming Prof. Dr. Bertrand Meyer Chair of Software Engineering Complement to lecture 11 : Levenshtein.
Liang Jin * UC Irvine Nick Koudas University of Toronto Chen Li * UC Irvine Anthony K.H. Tung National University of Singapore * Liang Jin and Chen Li:
1 CS 430 Database Theory Winter 2005 Lecture 11: SQL DDL.
Invitation to Computer Science 6 th Edition Chapter 10 The Tower of Babel.
The Prolog Language by Piyabut Thavilthicakul
Integrated Departmental Information Service IDIS provides integration in three aspects Integrate relational querying and text retrieval Integrate search.
SwissFIR V3.0 Development of a FCDBMS based on EuroFIR standards.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe.
Class XII - Computer Science ( Theory ) UNIT NAMEMARKS OBJECT ORIENTED PROGRAMMING IN C++30 DATA STRUCTURE14 DATABASE AND SQL8 BOOLEAN ALGEBRA8 NETWORKING.
CS122B: Projects in Databases and Web Applications Winter 2017
CS122B: Projects in Databases and Web Applications Winter 2017
CS122B: Projects in Databases and Web Applications Spring 2017
CS122B: Projects in Databases and Web Applications Winter 2017
CS122B: Projects in Databases and Web Applications Winter 2017
Library Reserve System
Database Driven Websites
CS122B: Projects in Databases and Web Applications Spring 2017
CS122B: Projects in Databases and Web Applications Spring 2017
CS122B: Projects in Databases and Web Applications Winter 2017
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Spring 2017
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2017
Dynamic Programming Computation of Edit Distance
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Winter 2019
Routing Algorithms Problems
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2018
Complement to lecture 11 : Levenshtein distance algorithm
Database Connectivity and Web Development
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Spring 2018
7 – Variables, Input and Output
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Winter 2018
Presentation transcript:

CS122B: Projects in Databases and Web Applications Winter 2019 Professor Chen Li Department of Computer Science UC Irvine Notes 12: User-Defined Functions (UDF) in MySQL

Purpose SQL has its own limitations Enhance DB using functions implemented in C

Example: edit distance Edit distance between two strings is the minimum number of single-character operations (insert/delete/substitute) to transform one to the other Also known as Levenshtein distance Example: ed(”schwazeneger”, ”schwarzenegger”) = 2

Dynamic programming for edit distance

Example ed(”elephant”, ”relevant”) = 3

Supporting Edit Distance as UDF Compile Edit distance Function in C: ed.c Shared library libed.so CREATE FUNCTION ed RETURNS INTEGER SONAME 'libed.so'; SELECT ed('abc', 'ad'); MySQL

Example: using ed as a UDF select * from stars where name = ’Arnold schwarzenegger' limit 5 select * from stars where ed(name, 'Arnold Schwarzeneger') <= 2 limit 5