Basic Algorithmic Reasoning in Computer Science
Upcoming SlideShare
Loading in...5
×
 

Basic Algorithmic Reasoning in Computer Science

on

  • 966 views

Basic algorithmic reasoning in computer science using the searchable results method. Arriving at a conclusion based on known search parameters to calibrate an algorithm. I have written this algorithm ...

Basic algorithmic reasoning in computer science using the searchable results method. Arriving at a conclusion based on known search parameters to calibrate an algorithm. I have written this algorithm in C++ and PYTHON. Find out more at my website http://christopherreevesofficial.com about reasoning algorithms

Statistics

Views

Total Views
966
Views on SlideShare
966
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Basic Algorithmic Reasoning in Computer Science Basic Algorithmic Reasoning in Computer Science Presentation Transcript

  • Simple Reasoning Algorithms Come to a consensus on an article as being positive or negative, andwhat the article is about. The “main idea”. This is a Naïve approach but shows the searchable results method for reasoning algorithms Reporting algorithm on live news Chris Reeves (10/16/2012) @cjreeves2011
  • Obtain Data• Scrape data using python script
  • Algorithmic MethodObtain Data Event Actions Determine an Parse Data Action to Take Action Accuracy Data Object Form Return an Action
  • Action • An action is a call to an action function that has no return type. An action is the most basic part of an algorithmic methodVoid action1(double accuracy){ //perform action} • You can have different classes of actions relevant to that class
  • Accuracy• Every call should return an accuracy with an action. Every action should take in to account the accuracy of the computation.• Each word shall be scored in a negative or positive manner as a naïve overview of the article.
  • Data Object Form• A structure of objects to hold data associated with a set of data.• Positive or negative article• Main people, places, things• Main idea of article• References
  • Stored Tables and Values• Massive storage tables are needed to store a list of positive and negative words.• There are roughly 171,476 words in the english language.• You must rank them all as positive or negative weight on a paragraph.• Words like sad, glad, upset, down, the, about, all have different positive or negative weights.
  • How to score words positive or negative?• Read a lot of text and determine the average amount of times a word is used.• Manually define words that are negative (20- 50 should suffice)• For any word N in the set of all words, search for N and scrape resulting articles and synonyms.• Determine if the sample negative and positive words appear disproportionately.
  • How to score words positive or negative? (cont.)• Record disproportionate results and rank them as a percentage variance from the mean.• Dynamiclly add the top 5% of words that are disproportionately, to your manually defined positive and negative lists respectively.
  • Caution• Do not look for specific key words to determine the the meaning of an article only.• Search for articles of meaning “happy”, “upset”, “good news”,”bad news” and let the algorithm set its own idea of “good” and “bad” after reading 1000’s of articles on the topic.
  • Caution (cont.)• Example: if articles pertaining to “happy” happen to contain the word “automotive” at a disproportionate level, leave this data.• It might not make sense, but with a large enough data set this is the best method.• Search engines provide a limitless quota of data to be parsed and used for calibrating intelligent systems.
  • Searchable Results Method• Searchable results method is where you queue articles of a desired type with a search term to guaruntee articles of known result.• These articles are all positive or negative so you can see if your algorithm guesses correctly.
  • You are now ready to set accuracy.• How do you determine if you were correct in rating an article for positivity or negativity?Simply search for “good news” or “bad news” and the algorithm willgive a rating, usually from 0 to 100 on the good-bad scale.The algorithm should, on average, return a number in the direction ofthe term that you searched.If you search “bad news”, the algorithm should return very lownumbers. I
  • Determine an Object Form• Use language rules to determine topics with searchable results method.• How often is the title the topic?• How often does the topic appear in the text?• Is the topic a person, place, thing, or idea?
  • Determine an Object Form (cont.)• You can determine the topic with searchable results method by searching “windmills”. Then counting the number of results with windmills in the title.• Now you know what % chance the title is also the topic. You must have a well defined format for topics though.
  • Simple Resoning Algorithm Positive and Search ResultsRaw Data Negative words list Populate word list Match raw data against List of objects Word list and determine and Determine main ideas, positive or negative parameters Learn language from Sample data Opinion of article/data Test raw data against conclusions From recorded data sample.