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 …

Proyecto Final (2016)

Kevin Flores Alvarez 201-30-5386 Monografia: Inteligencia Artificial Abstract The definition of artificial intelligence is evolving constantly, and so are the mentalities of society. In a world where humans are always leaning on technology, some key questions need to be answered before embarking on the journey of artificial intelligence; Can it be done? If so, what …

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 = …

Tarea 14

Tarea 1: WIKIPEDIA http://wp.me/p7clu9-2 Tarea 2: GIF http://wp.me/s7clu9-gif Tarea Feedly: http://wp.me/s7clu9-feedly Tarea La web: http://wp.me/p7clu9-Q Tarea recomendaciones de personas : http://wp.me/p7clu9-10 Tarea Primera evaluacion: http://wp.me/s7clu9-resumen Tarea Hyphotesis http://wp.me/p7clu9-1q Tarea video de entravista http://wp.me/p7clu9-1w   Tarea Milq http://wp.me/s7clu9-milq   Tarea (trabajo en grupo entrevistas)   En…

Asignacion 14

  asignaciones: asignacion 1: Wikipedia https://jasonpovblog.wordpress.com/2016/02/07/wikipedia-y-sus-15-anos/ animated gifts https://jasonpovblog.wordpress.com/2016/03/16/animated-gifts/ asignacion 4 : animated giphy https://jasonpovblog.wordpress.com/2016/03/16/animated-giphy/ asignacion 5 : feedly https://jasonpovblog.wordpress.com/2016/03/16/feedly/ asignacion 8 : page hacker https://jasonpovblog.wordpress.com/2016/03/28/page-hacker/ Facebook y aplicacion para ciegos https://jasonpovblog.wordpress.com/2016/04/05/facebook-y-aplicacion-para-ciegos/ Asignacion 9.video entrevistas https://jasonpovblog.wordpress.com/2016/04/22/video-proyecto/ Entrevista a Rafael Matos https://jasonpovblog.wordpress.com/2016/05/02/entrevista-a-rafael-matos/ asignacion 11: Ted playlist…