law cs
play

Law & CS http://en.wikipedia.org/wiki/File:CourtEqualJustice.JPG - PDF document

Law Equal justice under law Law & CS http://en.wikipedia.org/wiki/File:CourtEqualJustice.JPG Which building is that? Philip Chan Law Right to a Fair Trial Who makes the law? Sixth Amendment: In all criminal


  1. Law � “Equal justice under law” Law & CS � http://en.wikipedia.org/wiki/File:CourtEqualJustice.JPG � Which building is that? Philip Chan Law Right to a Fair Trial � Who makes the law? � Sixth Amendment: � “In all criminal prosecutions, the accused shall enjoy the right to a speedy and public trial, by an impartial jury of the State and district where � Who enforces the law? in the crime shall have been committed …” Fair Trial Attorneys � Presumed innocence until proven guilty � Why do we need attorneys to represent clients (the accused)? � Burden of proof is on the prosecution � Trial by jury (peers) 1

  2. Attorneys Attorneys � Why do we need attorneys to represent � Why do we need attorneys to represent clients (the accused)? clients (the accused)? � Fifth Amendment: � Fifth Amendment: � “…nor shall be compelled in any criminal case to be a � “…nor shall be compelled in any criminal case witness against himself…” to be a witness against himself…” � Miranda Rights: � “You have the right to remain silent. Anything you say can and will be used against you in a court of law. You have the right to an attorney. If you cannot afford an attorney, one will be appointed to you. ...” Attorney Scheduling � Real problem for Senior Projects Attorney Scheduling � http://www.cs.fit.edu/~pkc/classes/seniorProjects/opportunities/attorneyScheduling.pdf Problem 1 Problem Formulation Problem Formulation � Given (input) � Given (input) � Judge/case schedule � Attorney availability � Constraints—no time conflicts � Find (output) � Find (output) � Simplification � Simplification 2

  3. Problem Formulation What is your algorithm? � Given (input) Judge Mon Tue Wed Thu Fri John Case A Case B � Judge/case schedule Jane Case C Case D � Attorney availability Jack Case E � Constraints—no time conflicts � Find (output) Attorney Mon Tue Wed Thu Fri � Attorney schedule Alice available available available available Andy available available available available � Simplification � Days instead of hours. Specialty, even load … are ignored First Available Attorney First available attorney � For each case, schedule the first available Judge Mon Tue Wed Thu Fri attorney John Case A Case B Jane Case C Case D Jack Case E Attorney Mon Tue Wed Thu Fri Alice Case A available available available Andy available available available available First available attorney First available attorney Judge Mon Tue Wed Thu Fri Judge Mon Tue Wed Thu Fri John Case A Case B John Case A Case B Jane Case C Case D Jane Case C Case D Jack Case E Jack Case E Attorney Mon Tue Wed Thu Fri Attorney Mon Tue Wed Thu Fri Alice Case A available available Case B Alice Case A available available Case B Andy available available available available Andy Case C available available available 3

  4. First available attorney First available attorney Judge Mon Tue Wed Thu Fri Judge Mon Tue Wed Thu Fri John Case A Case B John Case A Case B Jane Case C Case D Jane Case C Case D Jack Case E Jack Case E Attorney Mon Tue Wed Thu Fri Attorney Mon Tue Wed Thu Fri Alice Case A available Case D Case B Alice Case A available Case D Case B Andy Case C available available available Andy Case C available Case E available Cases with more than one day First available attorney � We use day as a time unit for simplicity Judge Mon Tue Wed Thu Fri John Case A � Each time unit could be: Jane Case B Case B � an hour Jack Case C Case C � morning/afternoon Attorney Mon Tue Wed Thu Fri Alice available available available available Andy available available available First available attorney First available attorney Judge Mon Tue Wed Thu Fri Judge Mon Tue Wed Thu Fri John Case A John Case A Jane Case B Case B Jane Case B Case B Jack Case C Case C Jack Case C Case C Attorney Mon Tue Wed Thu Fri Attorney Mon Tue Wed Thu Fri Alice available available Case A available Alice Case B Case B Case A available Andy available available available Andy available available available 4

  5. First available attorney First available attorney Judge Mon Tue Wed Thu Fri Judge Mon Tue Wed Thu Fri John Case A John Case A Jane Case B Case B Jane Case B Case B Jack Case C Case C Jack Case C Case C Attorney Mon Tue Wed Thu Fri Attorney Mon Tue Wed Thu Fri Alice Case B Case B Case A available Alice Case B Case B Case A available Andy available available available Andy available available available Cannot find an attorney for Case C However a solution exists! Can you see it? First available attorney What is your algorithm? Judge Mon Tue Wed Thu Fri John Case A Jane Case B Case B Jack Case C Case C Attorney Mon Tue Wed Thu Fri Alice Case B Case B Case C Case C Andy available available Case A Schedule Case A to Andy instead of Alice Longest-Case First Longest-Case First � Sort the cases by length in descending order Judge Mon Tue Wed Thu Fri John Case A � For each case, schedule the next available Jane Case B Case B attorney Jack Case C Case C Attorney Mon Tue Wed Thu Fri Alice Case B Case B available available Andy available available available 5

  6. Longest-Case First Longest-Case First Judge Mon Tue Wed Thu Fri Judge Mon Tue Wed Thu Fri John Case A John Case A Jane Case B Case B Jane Case B Case B Jack Case C Case C Jack Case C Case C Attorney Mon Tue Wed Thu Fri Attorney Mon Tue Wed Thu Fri Alice Case B Case B Case C Case C Alice Case B Case B Case C Case C Andy available available available Andy available available Case A Longest-Case First Longest-Case First � Also does not guarantee finding a solution if a Judge Mon Tue Wed Thu Fri solution exists John Case A Case A Case A Jane Case B Case B Jack Case C Case C Attorney Mon Tue Wed Thu Fri Alice available available available available Andy available available available Longest-Case First Longest-Case First Judge Mon Tue Wed Thu Fri Judge Mon Tue Wed Thu Fri John Case A Case A Case A John Case A Case A Case A Jane Case B Case B Jane Case B Case B Jack Case C Case C Jack Case C Case C Attorney Mon Tue Wed Thu Fri Attorney Mon Tue Wed Thu Fri Alice Case A Case A Case A available Alice Case A Case A Case A available Andy available available available Andy Case B Case B available Cannot find an attorney for Case C, but a solution exists! 6

  7. Longest-Case First What is your algorithm? Judge Mon Tue Wed Thu Fri John Case A Case A Case A Jane Case B Case B Jack Case C Case C Attorney Mon Tue Wed Thu Fri Alice Case B Case B Case C Case C Andy Case A Case A Case A Schedule Case A to Andy instead of Alice Longest Case, Least Available Longest Case, Least Available Attorney Attorney � Consider the longest case first Judge Mon Tue Wed Thu Fri John Case A Case A Case A � Consider the least available attorney first Jane Case B Case B Jack Case C Case C Attorney Mon Tue Wed Thu Fri Alice Case B Case B Case C Case C Andy Case A Case A Case A Longest Case, Least Available Longest Case, Least Available Attorney Attorney Judge Mon Tue Wed Thu Fri Judge Mon Tue Wed Thu Fri John Case A Case A Case A John Case A Case A Case A Jane Case B Case B Jane Case B Case B Jack Case C Case C Jack Case C Case C Attorney Mon Tue Wed Thu Fri Attorney Mon Tue Wed Thu Fri Alice Case B Case B Case C Case C Alice Case B Case B Case C Case C Andy Case A Case A Case A Andy Case A Case A Case A 7

  8. Longest case, Least available Longest Case, Least Available attorney Attorney � No guarantee to find a solution if one exists Judge Mon Tue Wed Thu Fri John Case A Case A Case A Jane Case B Case B Jack Case C Case C Attorney Mon Tue Wed Thu Fri Alice Case A Case A Case A available Andy available available available available Alice and Andy are equally available… Longest Case, Least Available What is the moral of the story? Attorney Judge Mon Tue Wed Thu Fri John Case A Case A Case A Jane Case B Case B Jack Case C Case C Attorney Mon Tue Wed Thu Fri Alice Case A Case A Case A available Andy Case B Case B available available Cannot find an attorney for Case C, but a solution exists What is the moral of the story? What is the moral of the story? � The first solution might not work � The first solution might not work � It’s NOT about “coding” 8

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend