WorksheetsChallenging AI and Coding Concepts kelompok 1
Total questions: 5
Worksheet time: 3mins
What is the time complexity of binary search in a sorted array?
O(n log n)
O(log n)
O(1)
O(n)
Explain the difference between supervised and unsupervised learning in machine learning.
Unsupervised learning focuses on regression tasks, while supervised learning handles classification.
Supervised learning uses clustering techniques, while unsupervised learning requires labeled data.
Supervised learning is faster than unsupervised learning due to its data requirements.
Supervised learning requires labeled data for training, while unsupervised learning uses unlabeled data to identify patterns.
What are the main components of a neural network?
Input features, hidden states, loss functions
Input layer, hidden layers, output layer, weights, biases, activation functions
Data layer, processing units, output signals
Input nodes, output nodes, feedback loops
In object-oriented programming, what is polymorphism and how is it implemented?
Polymorphism allows methods to do different things based on the object it is acting upon, implemented via method overriding and interfaces.
Polymorphism allows objects to be combined into a single type, implemented via encapsulation.
Polymorphism refers to the use of a single method for all objects, implemented by static typing.
Polymorphism is the ability to create multiple classes in a program, implemented through class inheritance.
Describe the A* search algorithm and its applications.
A* search algorithm is used in pathfinding, robotics, game development, and AI for optimal route planning.
A* search algorithm is mainly applied in financial forecasting and analysis.
A* search algorithm is a method for image processing and enhancement.
A* search algorithm is primarily used for sorting data in databases.
