Questions tagged [artificial-intelligence]
Artifical Intelligence in the field of computer science is the study, design and engineering of intelligent systems able to perceive their environment and take actions to optimize their chance of success in achieving a goal.
143 questions
0
votes
1
answer
85
views
Clarification on Model Context Protocol: Message Format vs. Communication Architecture?
I'm currently trying to understand protocolls such as A2A and MCP. While doing so, I wasn't sure whether MCP is responsible for defining:
The structure and required fields of JSON messages (e.g., ...
1
vote
4
answers
611
views
How to decompose a large Git commit with an AI
Given a large Git commit, how can I split it in a "virtual branch" of multiple smaller coherent changes properly annotated with commit messages? How can AI be applied to the task?
I like ...
5
votes
3
answers
1k
views
What is "vibe coding" and what are the strong points of this methodology?
A topic that recently started appearing on my socials in programming-related circles was "vibe coding". Based on the context, it appeared to be some sort of emergent methodology to write ...
-2
votes
1
answer
606
views
Are there good practices or even conventions to store LLM prompts I use while coding?
I sometimes use some language model assistance (e.g., GPT-4o) while coding. I'd like to save somewhere the prompts and language model versions I used. Are there good practices or even conventions to ...
-2
votes
2
answers
197
views
Identifying the minimal set of columns that can be used to define a unique instance in a database table
Some context here:
I am developing a comparison tool that coalesces, formats and concatenates all column values for the individual rows in a table. This single string is further reduced in size by ...
2
votes
2
answers
459
views
Best-first search on a graph
I am working through an example of best-first search on a graph, and I'm having some trouble understanding exactly what the process should be.
This is the graph I have:
The heuristic values are in ...
22
votes
4
answers
6k
views
How do AI developers for LLM fix bugs when the LLM misbehaves, given that they cannot control what the LLM learns from the data?
The traditional non AI software with if-then-else and loop statements can be fully controlled. In contrast, machine learning software behaviour is unpredictable since the developer cannot control what ...
0
votes
1
answer
129
views
API for a statefull AI server
I'm designing a web application for image analysis using AI. My API for CRUD operations is written in Django. Now I want to add the AI functionality which loads the model once on the startup, receives ...
1
vote
1
answer
919
views
Is it OK to commit code written by a large model such as ChatGPT or Github Copilot? [closed]
Question inspired by a similar question in Academia.SE: Is it OK to generate parts of a research paper using a large language model such as ChatGPT?
I've always been very sceptical about AI code ...
-2
votes
1
answer
206
views
Is it possible to predict last 3 digits of a closing stock price? [closed]
So, i just start learning in AI field and i want to develop my skill more. So, i just curious is it possible to predict last 3 digits of a closing stock price? which mean the output result will run ...
0
votes
0
answers
109
views
pruning tree search in multiplayer zero-sum games with loss conditions
I'm trying to write a program to play a simple multiplayer (it's safe to assume less than 10 players) game where each player has a number of resources.
Every turn the players make decisions that ...
6
votes
0
answers
790
views
How to OCR and/or recreate lines of Egyptian Hieroglyphs in Unicode/HTML?
I am wondering how to take these Hieroglyphs and make them into Unicode. I read through the Tesseract docs on how to create training data, but it seems largely tailored toward "traditional" ...
3
votes
1
answer
254
views
How to guess which pieces of text belong to which lines in a scanned document?
I want to be able to analyze a five-years archive of supermarket receipts. The receipts are scanned, and thanks to Google Cloud Vision API, the result of an OCR is available. Google's API, however, ...
-3
votes
3
answers
844
views
How would someone record GPU image output?
I notice the GPU, like latest Nvidia/AMD cards, have an output that goes to your monitor but I want to know if we can also use that GPU output feed into some kind of image recorder HARDWARE? If yes, ...
2
votes
3
answers
279
views
Move the onscreen circle when camera moves
I have a script that accesses my webcam and displays the captured video on the screen. I can also very easily draw a circle (a rectangle, it doesn't matter) over the video.
When I move the camera ...
5
votes
1
answer
1k
views
What do I not understand about Alpha-Beta-Pruning in Chess?
I'm trying to write a chess engine, Min-Maxing works. Now I wanted to implement Alpha-Beta-Pruning, but despite reading about it and watching videos, I must have a severe misunderstanding somewhere.
...
-2
votes
1
answer
256
views
Is there a way to get rid of loop for layers in a neural network
I have being learning about deep neural networks and how the increase in hidden layers give better results. but the problem that i found was we usually get rid of loops in calculations by using ...
6
votes
4
answers
822
views
Improved design for a turn-based multiplayer game using AI?
I'm trying to decide which is the best architecture for a turn-based multiplayer game where the players can be either humans or AI and the UI is optional, for instance because the game can just be ...
2
votes
1
answer
2k
views
Clustering Algorithm with max number of clusters
I'm looking for a clustering algorithm (ideally density based) that allows me to specify the maximum number of clusters (but not the exact number). All points must be assigned to a cluster, so I can't ...
-1
votes
1
answer
83
views
What kind of of tools/architecture would work well for a student team competing in a robot soccer competition?
The scenario is as follows. There is a PC running a complex piece of AI software wirelessly controlling a number of soccer robots. This software is written and maintained by a team of students that ...
3
votes
2
answers
637
views
Is manually tagging content an ideal start for eventual machine learning?
I'm putting together a mobile app that would allow users to search, rate, and upload photos of dishes at restaurants. I have no machine learning experience (just FE/BE/Mobile) so for the time being I ...
3
votes
1
answer
4k
views
Distinction between AI, ML, Neural Networks, Deep learning and Data mining
I have recently started exploring the field of machine learning (ML). I think I understand the difference between ML and AI at high level, but I wanted to understand more accurately the differences ...
1
vote
0
answers
128
views
Can machine learning be used for non-numerical prediction?
I've started reading a machine learning book since a few days ago, and I've learned about how it can be used for classification/regression/etc. However, I am unsure if it will be able to handle the ...
3
votes
1
answer
309
views
Fitness Function altenatives in Genetic Algorithms for game AI
I have created a Gomoku(5 in a row) AI using Alpha-Beta Pruning. It makes move on a not-so-stupid level. First let me describe the grading function of the Alpha-Beta algorithm.
When it receives a ...
0
votes
2
answers
366
views
(AI) algorithm to optimize input parameters
Background information
I am building a program that plays checkers as good as possible. It already plays pretty well but the goal is to improve it even more.
This can be done by adding new methods to ...
0
votes
1
answer
335
views
How do you evolve a neural network?
I've read about NEAT/Evolutionary Artificial Neural Networks/Genetic Algorithms.
I understand the concept of choosing the fittest neural networks and breeding them to produce another one, but how ...
3
votes
5
answers
997
views
What programming paradigm do you think would work best for the AI aspect of a chess engine?
I wish to write a chess AI which simulates the way I think over the board, using C++. My focus is on writing the algorithms for choosing moves (decision making), not defining the board and pieces. To ...
-6
votes
4
answers
433
views
AI Language that doesn't release source code or can't be decompiled
I looked at using python for the AI in a security application for hobby-business but apparently you either release it as source code or it can be easily decompiled. Of the new machine learning ...
0
votes
1
answer
331
views
How to design an AI For Sorry?
Context: I'm working on a Windows console version of the board game Sorry. In Sorry, each player has four pawns. Based on drawn cards, a player moves their pawns around the board. These moves can ...
2
votes
1
answer
433
views
Monte Carlo Tree Search in Game AI
I am very confused in implementing MCTS for a connect 5 game.
According to Wikipedia:
Selection: start from root R and select successive child nodes down to a leaf node L.
Lets say it's the AI's ...
2
votes
1
answer
262
views
Is handwriting OCR more accurate if the author of the handwriting is indicated?
Question
When training and using an OCR algorithm for handwriting recognition, is it helpful to indicate the author of the handwriting?
Use Case
Have a warehouse full of documents that need to be ...
4
votes
1
answer
539
views
Double neural network architecture for starcraft AI programming endeavour
Please take a look at this AI system architecture proposal:
As you can see this is a multi-agent AI system for starcraft brood war that utilizes BWAPI AI framework, and I proposed this idea for the ...
1
vote
0
answers
664
views
Are there any rule-based programming language that are not considered production systems?
I am trying to learn the difference between a production system and a rule-based system because it seems to me that they are the same thing basically. I know that both refer to programs (system) that ...
1
vote
1
answer
567
views
When implementing Monte Carlo Tree Search for TicTacToe, do I simulate won states?
I'm trying to debug my MCTS implementation for TicTacToe (it doesn't block obvious wins for the opponent). I was wondering what the algorithm should do if it expands to a node which is a game over ...
1
vote
1
answer
187
views
How to analyse user input and determine if it (kind of) matches an answer
I'm working on a quiz system that will allow users to enter text as an answer. The question could be something simple to start with, looking for a short phrase, or a select few words as the "correct" ...
2
votes
3
answers
3k
views
Building a simple AI for Noughts & Crosses game
I'm developing a simple noughts & crosses game where the player plays against the computer.
Obviously, I use the Randomize function of the language, however, the final stage of refinement is to ...
0
votes
1
answer
909
views
How to run 2-layer perceptron to solve XOR
XOR is not solvable by using a single perceptron with standard scalar product and unit step function.
This article suggests using 3 perceptron to make a network:
http://toritris.weebly.com/perceptron-...
6
votes
2
answers
13k
views
What is identity mapping in neural networks
I came across the term identity mapping in some papers about neural networks but am not sure what it is supposed to mean in that context.
I'm guessing it means to map a sort of input to an output?
I ...
2
votes
0
answers
964
views
Programming a good puzzle game (Puyo Puyo) AI
I'm trying to build a strong AI for a game called Puyo Puyo, in Matlab (I know... but it's the only language I know well).
Basically it's like Tetris but you get falling pairs of 2 puyos (blobs) of ...
-1
votes
2
answers
2k
views
Normal Form in Artificial Intelligence [closed]
Why do we use normal form(like Conjuctive Normal Form and Disjunctive Normal Form) in Artificial intelligence?What is the specific purpose of Making a sentence in Normal Forms?
1
vote
5
answers
1k
views
Machine learning without programming?
I am old to programming and very beginner to Machine Learning and what make me surprise is the defination as i typed in google i found this.
Machine learning is a type of artificial intelligence (AI)...
2
votes
2
answers
2k
views
How to create an efficient implementation of a dictionary of synonyms?
How do I create a dictionary of synonyms that is efficient in terms of retrieving synonyms of a word?
Basically, I want to use some sorts of data storage to store groups of words, and enable an end-...
8
votes
4
answers
262
views
Choosing a sequence of animations for an NPC - use a behaviour tree?
I am implementing an NPC to walk around a virtual space, specifically a cat. I have a series of short animation clips (3-5 seconds). My first instinct was just to choose a random animation when the ...
2
votes
1
answer
643
views
Getting started with machine learning a zero sum game?
I have a simple zero sum, discrete, deterministic, complete information board game. I want to machine learn an evaluation function for an AI agent.
Suppose each board state has ~20 identifiable ...
3
votes
2
answers
247
views
Neural networks: No solutions for test data possible?
So there are two ways of teaching a neural network as far as I am aware of.
You supply the AI with test data and the correct solution to the problem. After some time the network will be able to get ...
3
votes
1
answer
5k
views
Vector input for Artificial Neural Network?
My problem is fairly complex, so here is a similar, simplified example.
Let's say you wanted to predict the Miles Per Gallon (fuel consumption) of a car, based on the following information: you have ...
3
votes
2
answers
2k
views
Class diagrams and frames
UML class diagrams (1st pic) and frames (which belong to knowledge representation and artificial intelligence) (2nd pic) look pretty alike. But do class diagrams exactly type of frames or they just ...
1
vote
2
answers
2k
views
Algorithm for finding all empty tiles in rectangular grid?
I have a rectangular grid of square tiles, some of which are blocked/filled. I start at a random tile inside the grid with the blocked tiles, randomly placed. I can turn in 90° steps and check whether ...
17
votes
2
answers
729
views
How to find hard to misspell given names?
Here is a question that I believe could be solved with some data mining and a sophisticated algorithm, but I don't quite know how. Any pointers as to what data sources to use and what algorithm to ...
4
votes
1
answer
2k
views
Best approach to implement multiple levels of difficulty to a minimax AI [closed]
I'm programming a game (turned base, in a grid) for which I implemented an AI using the minimax algorithm (with alpha-beta prunning). It's all fine and working, but the AI is too good and I can't win ...