Pergunta de entrevista da empresa NVIDIA

What is meant by virtual memory? Time complexity of insertion in Linked List vs. Array? Smoothing an image - what filter to use? Salt and pepper noise removal? Memory storage - heap vs stack?

Respostas da entrevista

Sigiloso

11 de fev. de 2017

Smoothing an image can be done by convolving with a kernel: 1- a matrix of ones- simple averaging. 2- convolving with a gaussian matrix which simply means the center pixel has more weight in averaging. Salt an pepper noise: with max - min or median filters.

Sigiloso

12 de fev. de 2022

What is meant by virtual memory? virtual memory is a memory management technique that provides an "idealized abstraction of the storage resources that are actually available on a given machine" which "creates the illusion to users of a very large (main) memory". Time complexity of insertion in Linked List vs. Array? Linked list: O(1) Array: O(n) Memory storage - heap vs stack? Stack: linear data structure, high-speed access, no fragmentation, local variables only, variables can't be resized. Heap: hierarchical data structure, slow access time(compared to stack), memory can become fragmented, global variables, variables can be resized.