Best First Search: Graphs

package graphs; import java.util.*; import graphs.State; public class GraphImplementation { public void dfs(Node root) { //Avoid infinite loops if(root == null) return; System.out.print(root.getVertex() + “t”); root.state = State.Visited; //for every child for(Node n: root.getChild()) { //if childs state is not visited then recurse if(n.state == State.Unvisited) { dfs(n); } } } public void bfs(Node root) …

Asignación 7: Cilog

A. tell brothers(X,Y) <- brother(X,Y). tell brothers(X,Y) <- sister(X,Y). tell sister(nathalia,nieves). tell brother(carlos,beltran). tell parent(X,Y) <- father(X,Y). tell parent(X,Y) <- mother(X,Y). tell brothers(Q,W) <- parent(X,Q) & parent(X,W). tell father(walt,carlos). tell father(walt,nathalia). tell mother(ana,carlos). tell mother(ana,nathalia). ask brothers(nathalia,nieves).   tell male(X). tell female(X). ask female(nathalia). B. tell pinta(X) <- ~fotografos (X). tell escultores(X) <- ~fotografos(X). tell …

Asignación #3: A* program

import java.util.PriorityQueue; import java.util.HashSet; import java.util.Set; import java.util.List; import java.util.Comparator; import java.util.ArrayList; import java.util.Collections; public class AstarSearchAlgo{ //h scores is the stright-line distance from the current city to Bucharest public static void main(String[] args){ //initialize the graph base on the Romania map Node n1 = new Node(“Arad”,366); Node n2 = new Node(“Zerind”,374); Node n3 = …

Are these really AI machines?

http://www.cs.umb.edu/~ding/history/470_670_fall_2013/homework/hwk1_AI_Applications.html The website above provides a list of supposedly AI machines. I’ll talk about one of them and this one is called Cleverbot. Alvin Mai’s Cleverbot is a chatterbot that’s modeled after human behavior and able to hold a conversation. It does so by remembering words from conversations. The responses are not programmed. Instead, it finds keywords …

Asignacion #15

Asignaciones: 1.Tarea 1:  Introduction: https://kevin22pr.wordpress.com/2015/02/02/hello-darling/ 2. Tarea Resumen: https://wordpress.com/post/56915547/19/ 3.  Tarea 2: As we may think: https://wordpress.com/post/56915547/27/ 4. Tarea 3: Delicious posts: https://wordpress.com/post/56915547/38/ 5. Tarea 4: Ted Talks: https://wordpress.com/post/56915547/62/ 6.Tarea 5: Facebook article:  https://wordpress.com/post/56915547/58/ 7. tarea 6: Web Semantics:  https://wordpress.com/post/56915547/50/ 8.. Tarea 7: GIF : https://wordpress.com/post/56915547/45/ 9. Tarea 9: autoevaluacion: https://wordpress.com/post/56915547/79/ 10. Tarea 11: Flickr: https://www.flickr.com/photos/131363431@N03/sets/72157651956050862 11. Tarea 12: monografia: https://wordpress.com/post/56915547/81/ 12. tarea 14: … Continue reading Asignacion #15

Autoevaluation

Homework list https://kevin22pr.wordpress.com/2015/02/02/hello-darling/ https://kevin22pr.wordpress.com/2015/02/02/resumen-de-la-clase-enero-28/ https://kevin22pr.wordpress.com/2015/02/23/my-delicious-thingies-darling/ https://kevin22pr.wordpress.com/2015/03/10/the-gift-of-gifs/ https://kevin22pr.wordpress.com/2015/03/10/web-semantics/ https://kevin22pr.wordpress.com/2015/03/16/62/ https://kevin22pr.wordpress.com/2015/02/10/as-we-may-think-as-we-shouldve-thought/ https://kevin22pr.wordpress.com/2015/03/15/two-facebook-article-that-dont-know-squat-what-theyre-talking-about/ Blog posts 21 blog posts were published Total views 78 views in total Total class tweets 6 tweets have been shared with the class TED Talks subject Technological innovation Auto-Evaluation paragraph I’ve been slow with my blog i must say. I wasn’t a fan of…