Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

 Explain language translation and text classification in NLP. Give examples. 


How do we extract information from a given sentence of words in NLP? Give some examples of information extraction.


 Explain information retrieval in detail. What is the use of vector space model in information retrieval?


 Explain parts of speech (POS) tagging. What are the advantages of POS tagging?


Define Uni-gram, bi-grams and N-grams in detail. What are N-grams useful for? Also explain hidden markov model in detail


Given a string, write a program to re-arrange all the numbers appearing in the string in decreasing order. Note: There will not be any negative numbers or numbers with decimal part


Ordered Matrix

Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.Input


The first line of input will contain two space-separated integers, denoting the M and N.

The next M following lines will contain N space-separated integers, denoting the elements of each list.Output


The output should be M lines containing the ordered matrix.

Note: There is a space at the end of each line.Explanation


For example, if the given M is 3 and N is 3, read the inputs in the next three lines if the numbers given in the next three lines are the following.

1 20 3
30 10 2
5 11 15


By ordering all the elements of the matrix in increasing order, the ordered matrix should be

1 2 3
5 10 11
15 20 30

Sample Input 1

3 3

1 20 3

3 10 2

5 11 15

Sample Output 1

1 2 3

5 10 11

15 20 30

Sample Input 2

2 5

-50 20 3 25 -20

88 17 38 72 -10


Sample Output 2

-50 -20 -10 3 17

20 25 38 72 88




LCM and GCD

You are given two integers

x and y. Find the GCD and LCM of the numbers.GCD: Greatest Common Divisor of two integers is the largest positive integer that divides each of the integers.LCM: Least Common Multiple of two integers is the smallest positive multiple of both the integers.Input

The input contains two integers

x and y separated by space.Output

The output contains

GCD and LCM for the given pair of integers.Explanation

Given

x = 6 and y = 14.The GCD of the numbers is

2. The LCM of the numbers is 42.The output is

2 42.


what will be the output of the variable L after the following code is executed?



data stream - alphxxdida . After reverse - adidaxxhpla. so here x and a doesn't changed it position. How can I do this ?

Input - alphxxdida

Output-4
LATEST TUTORIALS
APPROVED BY CLIENTS