
-
Multi-Layer Perceptron and Backpropagation | Deep Learning
An MLP is composed of one (passthrough) input layer, one or more layers of TLUs, called hidden layers, and one final layer of TLUs called the output layer (seeFigure below). The layers close to the input layer are usually called the lower layers, and the ones close to the outputs are usually called the upper… Read more
-

Save the Prisoner Program in Python | Hacker Rank Solution
A jail has a number of prisoners and a number of treats to pass out to them. Their jailer decides the fairest way to divide the treats is to seat the prisoners around a circular table in sequentially numbered chairs. A chair number will be drawn from a hat. Beginning with the prisoner in that… Read more
-

Find Kth Number Program in Python
Introduction: The task at hand is to implement a Python function that finds the kth lexicographically smallest integer in the range from 1 to n. To achieve this, we will use a depth-first search (DFS) approach, exploring the numbers in lexicographical order. Let’s dive into the implementation. Also checkout: Implementation: Explanation: Example: For n =… Read more
-

SQL ADVANCE | The TOP Clause
SELECT TOP number|percent column_name(s) FROM table_name SQL SELECT TOP Equivalent in MySQL and Oracle: MySQL Syntax: SELECT column_name(s) FROM table_name LIMIT number Example: SELECT * FROM Persons LIMIT 5 Oracle Syntax SELECT column_name(s) FROM table_name WHERE ROWNUM <= number Example SELECT * FROM Persons WHERE ROWNUM <=5 SQL TOP Example The “Persons” table: Now we… Read more
-

SQL | The DELETE Statement
DELETE FROM table_name WHERE some_column=some_value Note: Notice the WHERE clause in the DELETE syntax. The WHERE clause specifies which record or records that should be deleted. If you omit the WHERE clause, all records will be deleted! SQL DELETE Example The “Persons” table: Now we want to delete the person “Tjessem, Jakob” in the “Persons”… Read more
-
SQL The ORDER BY Keyword
SELECT column_name(s) FROM table_name ORDER BY column_name(s) ASC|DESC ORDER BY Example The “Persons” table: Now we want to select all the persons from the table above, however, we want to sort the persons by their last name.We use the following SELECT statement: The result-set will look like this: ORDER BY DESC Example Now we want… Read more